Skip to content

Commit 3fe4991

Browse files
committed
Fixed some bugs in linux implementation. Added litebrowser_linux project as very simple test on linux (damn this was nightmare after Windows programming, but it working).
1 parent d9122cc commit 3fe4991

File tree

15 files changed

+1691
-23
lines changed

15 files changed

+1691
-23
lines changed

litebrowser_linux/.cproject

Lines changed: 281 additions & 0 deletions
Large diffs are not rendered by default.

litebrowser_linux/.project

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>litebrowser_linux</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
</arguments>
13+
</buildCommand>
14+
<buildCommand>
15+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
16+
<triggers>full,incremental,</triggers>
17+
<arguments>
18+
</arguments>
19+
</buildCommand>
20+
</buildSpec>
21+
<natures>
22+
<nature>org.eclipse.cdt.core.cnature</nature>
23+
<nature>org.eclipse.cdt.core.ccnature</nature>
24+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
25+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
26+
</natures>
27+
<linkedResources>
28+
<link>
29+
<name>master.css</name>
30+
<type>1</type>
31+
<locationURI>WORKSPACE_LOC/litehtml/include/master.css</locationURI>
32+
</link>
33+
</linkedResources>
34+
</projectDescription>

litebrowser_linux/Debug/makefile

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
-include ../makefile.init
6+
7+
RM := rm -rf
8+
9+
# All of the sources participating in the build are defined here
10+
-include sources.mk
11+
-include subdir.mk
12+
-include objects.mk
13+
14+
ifneq ($(MAKECMDGOALS),clean)
15+
ifneq ($(strip $(C++_DEPS)),)
16+
-include $(C++_DEPS)
17+
endif
18+
ifneq ($(strip $(C_DEPS)),)
19+
-include $(C_DEPS)
20+
endif
21+
ifneq ($(strip $(CC_DEPS)),)
22+
-include $(CC_DEPS)
23+
endif
24+
ifneq ($(strip $(CPP_DEPS)),)
25+
-include $(CPP_DEPS)
26+
endif
27+
ifneq ($(strip $(CXX_DEPS)),)
28+
-include $(CXX_DEPS)
29+
endif
30+
ifneq ($(strip $(C_UPPER_DEPS)),)
31+
-include $(C_UPPER_DEPS)
32+
endif
33+
endif
34+
35+
-include ../makefile.defs
36+
37+
# Add inputs and outputs from these tool invocations to the build variables
38+
39+
# All Target
40+
all: litebrowser_linux
41+
42+
# Tool invocations
43+
litebrowser_linux: $(OBJS) $(USER_OBJS)
44+
@echo 'Building target: $@'
45+
@echo 'Invoking: GCC C++ Linker'
46+
g++ -L/home/tordex/projects/litehtml/litehtml/Debug -o "litebrowser_linux" $(OBJS) $(USER_OBJS) $(LIBS)
47+
@echo 'Finished building target: $@'
48+
@echo ' '
49+
50+
# Other Targets
51+
clean:
52+
-$(RM) $(OBJS)$(C++_DEPS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) litebrowser_linux
53+
-@echo ' '
54+
55+
.PHONY: all clean dependents
56+
.SECONDARY:
57+
58+
-include ../makefile.targets

litebrowser_linux/Debug/objects.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
USER_OBJS :=
6+
7+
LIBS := -latk-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lfontconfig -lgdk-3 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lgtkmm-3.0 -latkmm-1.6 -lgdkmm-3.0 -lgiomm-2.4 -lpangomm-1.4 -lgtk-3 -lglibmm-2.4 -lcairomm-1.0 -lgio-2.0 -lsigc-2.0 -latk-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lfontconfig -lgdk-3 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lgtk-3 -lgio-2.0 -llitehtml
8+

litebrowser_linux/Debug/sources.mk

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
O_SRCS :=
6+
CPP_SRCS :=
7+
C_UPPER_SRCS :=
8+
C_SRCS :=
9+
S_UPPER_SRCS :=
10+
OBJ_SRCS :=
11+
ASM_SRCS :=
12+
CXX_SRCS :=
13+
C++_SRCS :=
14+
CC_SRCS :=
15+
OBJS :=
16+
C++_DEPS :=
17+
C_DEPS :=
18+
CC_DEPS :=
19+
CPP_DEPS :=
20+
EXECUTABLES :=
21+
CXX_DEPS :=
22+
C_UPPER_DEPS :=
23+
24+
# Every subdirectory with source files must be described here
25+
SUBDIRS := \
26+
. \
27+

litebrowser_linux/Debug/subdir.mk

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
################################################################################
2+
# Automatically-generated file. Do not edit!
3+
################################################################################
4+
5+
# Add inputs and outputs from these tool invocations to the build variables
6+
CPP_SRCS += \
7+
../broser_wnd.cpp \
8+
../cairo_container_linux.cpp \
9+
../html_widget.cpp \
10+
../main.cpp
11+
12+
OBJS += \
13+
./broser_wnd.o \
14+
./cairo_container_linux.o \
15+
./html_widget.o \
16+
./main.o
17+
18+
CPP_DEPS += \
19+
./broser_wnd.d \
20+
./cairo_container_linux.d \
21+
./html_widget.d \
22+
./main.d
23+
24+
25+
# Each subdirectory must supply rules for building sources it contributes
26+
%.o: ../%.cpp
27+
@echo 'Building file: $<'
28+
@echo 'Invoking: GCC C++ Compiler'
29+
g++ -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz -I/usr/include/gtkmm-3.0 -I/usr/lib/x86_64-linux-gnu/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/include/giomm-2.4 -I/usr/lib/x86_64-linux-gnu/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib/x86_64-linux-gnu/pangomm-1.4/include -I/usr/include/cairomm-1.0 -I/usr/lib/x86_64-linux-gnu/cairomm-1.0/include -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib/x86_64-linux-gnu/gdkmm-3.0/include -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/at-spi2-atk/2.0 -I/home/tordex/projects/litehtml/include -O0 -g3 -Wall -c -fmessage-length=0 -pthread -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
30+
@echo 'Finished building: $<'
31+
@echo ' '
32+
33+

litebrowser_linux/broser_wnd.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* broser_wnd.cpp
3+
*
4+
* Created on: Aug 1, 2013
5+
* Author: tordex
6+
*/
7+
#include "browser_wnd.h"
8+
#include <gtkmm.h>
9+
10+
browser_window::browser_window(litehtml::context* html_context) : m_html(html_context)
11+
{
12+
set_title("litehtml");
13+
14+
add(m_html);
15+
m_html.show();
16+
}
17+
18+
browser_window::~browser_window()
19+
{
20+
21+
}
22+

litebrowser_linux/browser_wnd.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* browser_wnd.h
3+
*
4+
* Created on: Aug 1, 2013
5+
* Author: tordex
6+
*/
7+
8+
#ifndef BROWSER_WND_H_
9+
#define BROWSER_WND_H_
10+
11+
#include <gtkmm/window.h>
12+
#include "html_widget.h"
13+
#include <litehtml.h>
14+
15+
class browser_window : public Gtk::Window
16+
{
17+
public:
18+
browser_window(litehtml::context* html_context);
19+
virtual ~browser_window();
20+
21+
protected:
22+
html_widget m_html;
23+
};
24+
25+
26+
#endif /* BROWSER_WND_H_ */

0 commit comments

Comments
 (0)