Skip to content

Commit 4a86a45

Browse files
CzarekCzarek
authored andcommitted
Fixes to the subprocess makefile.
1 parent 8172d3d commit 4a86a45

3 files changed

Lines changed: 7 additions & 17 deletions

File tree

cefpython/cef3/linux/binaries_64bit/wxpython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def OnExit(self):
175175
"browser_subprocess_path": "%s/%s" % (
176176
cefpython.GetModuleDirectory(), "subprocess")
177177
}
178+
# print("browser_subprocess_path="+settings["browser_subprocess_path"])
178179
cefpython.Initialize(settings)
179180
print('wx.version=%s' % wx.version())
180181
app = MyApp(False)

cefpython/cef3/subprocess/Makefile

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
1-
CC = g++
2-
CCFLAGS = -g
3-
4-
SRC = main.cpp
5-
OBJ = $(SRC:.cpp=.o)
6-
OUT = subprocess
1+
# -g - extra debug information
2+
# -O1 - more precise backtraces
3+
# -fPIC - required when using -shared option
74

85
INC = -I./../ -I/usr/include/python2.7 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include
96

10-
LIB = -L./../linux/setup/lib_64bit/ -L./../linux/setup/lib_32bit/
11-
12-
.cpp.o:
13-
$(CC) -fPIC $(INC) $(CCFLAGS) -c $< -o $@
7+
LIB = -L./../linux/setup/lib_64bit -L./../linux/setup/lib_32bit
148

15-
$(OUT): $(OBJ)
9+
subprocess:
1610
# Cython compiler options:
1711
# -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro
18-
$(CC) -fPIC -shared $(OBJ) $(LIB) -lcef_dll_wrapper -o $(OUT)
19-
20-
clean:
21-
rm *.o
22-
rm *.a
12+
g++ -fPIC $(INC) $(LIB) main.cpp -lcef_dll_wrapper -lcef -o subprocess -Wl,-rpath -Wl,./

cefpython/cef3/subprocess/client_app.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
#pragma once
66

7-
#include "util.h"
87
#include "include/cef_app.h"
98

109
class ClientApp : public CefApp {

0 commit comments

Comments
 (0)