Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 05884e2

Browse files
committed
[[ Prebuilt ]] Add thirdparty prebuilt project file
Add gyp target to link prebuilt thirdparty libraries into compiled executables
1 parent 18818ec commit 05884e2

10 files changed

Lines changed: 333 additions & 49 deletions

File tree

engine/kernel-development.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
'kernel.gyp:kernel',
5151

5252
'../thirdparty/libopenssl/libopenssl.gyp:libopenssl_stubs',
53-
'../thirdparty/libz/libz.gyp:libz',
53+
'../prebuilt/thirdparty.gyp:thirdparty_prebuilt',
5454
],
5555

5656
'sources':

engine/kernel-installer.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
[
3939
'kernel.gyp:kernel',
4040

41-
'../thirdparty/libz/libz.gyp:libz',
41+
'../prebuilt/thirdparty.gyp:thirdparty_prebuilt',
4242
],
4343

4444
'includes':

engine/kernel-server.gyp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@
5757
'../prebuilt/libcurl.gyp:libcurl',
5858
'../prebuilt/libopenssl.gyp:libopenssl',
5959

60-
'../thirdparty/libgif/libgif.gyp:libgif',
61-
'../thirdparty/libjpeg/libjpeg.gyp:libjpeg',
62-
'../thirdparty/libpcre/libpcre.gyp:libpcre',
63-
'../thirdparty/libpng/libpng.gyp:libpng',
64-
'../thirdparty/libz/libz.gyp:libz',
60+
'../prebuilt/thirdparty.gyp:thirdparty_prebuilt',
6561

6662
'engine-common.gyp:quicktime_stubs',
6763

engine/kernel.gyp

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@
2020

2121
'../libbrowser/libbrowser.gyp:libbrowser',
2222

23-
'../thirdparty/libgif/libgif.gyp:libgif',
24-
'../thirdparty/libjpeg/libjpeg.gyp:libjpeg',
2523
'../thirdparty/libopenssl/libopenssl.gyp:libopenssl_stubs',
26-
'../thirdparty/libpcre/libpcre.gyp:libpcre',
27-
'../thirdparty/libpng/libpng.gyp:libpng',
28-
'../thirdparty/libz/libz.gyp:libz',
2924

3025
'../prebuilt/libopenssl.gyp:libopenssl_headers',
3126

27+
'../prebuilt/thirdparty.gyp:thirdparty_prebuilt',
28+
3229
'engine-common.gyp:encode_version',
3330
'engine-common.gyp:quicktime_stubs',
3431
],
@@ -68,12 +65,6 @@
6865
[
6966
'OS == "android"',
7067
{
71-
'dependencies':
72-
[
73-
'../thirdparty/libfreetype/libfreetype.gyp:libfreetype',
74-
'../thirdparty/libskia/libskia.gyp:libskia',
75-
],
76-
7768
'sources!':
7869
[
7970
# Not yet supported on Android
@@ -100,10 +91,6 @@
10091
[
10192
'OS == "emscripten"',
10293
{
103-
'dependencies':
104-
[
105-
'../thirdparty/libskia/libskia.gyp:libskia',
106-
],
10794
'sources':
10895
[
10996
'<@(engine_minizip_source_files)',

libfoundation/libfoundation.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545

4646
'dependencies':
4747
[
48+
'../prebuilt/thirdparty.gyp:thirdparty_prebuilt',
4849
'../prebuilt/libicu.gyp:libicu',
4950
'../prebuilt/libicu.gyp:encode_minimal_icu_data',
5051
'../thirdparty/libffi/libffi.gyp:libffi',
51-
'../thirdparty/libz/libz.gyp:libz',
5252
],
5353

5454
'include_dirs':

libgraphics/libgraphics.gyp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
'dependencies':
1616
[
17+
'../prebuilt/thirdparty.gyp:thirdparty_prebuilt',
1718
'../libfoundation/libfoundation.gyp:libFoundation',
18-
'../thirdparty/libskia/libskia.gyp:libskia',
1919
],
2020

2121
'include_dirs':
@@ -48,21 +48,6 @@
4848
'src/drawing.cpp',
4949
],
5050

51-
'conditions':
52-
[
53-
[
54-
'OS in ("emscripten", "android")',
55-
{
56-
'dependencies':
57-
[
58-
'../prebuilt/libicu.gyp:libicu',
59-
'../thirdparty/libfreetype/libfreetype.gyp:libfreetype',
60-
'../thirdparty/libharfbuzz/libharfbuzz.gyp:libharfbuzz',
61-
],
62-
},
63-
],
64-
],
65-
6651
'target_conditions':
6752
[
6853
[

prebuilt/fetch-libraries.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ ARCHS_ios=( Universal )
88
ARCHS_win32=( x86 x86_64 )
99
ARCHS_linux=( i386 x86_64 )
1010
ARCHS_emscripten=( js )
11-
LIBS_android=( OpenSSL ICU )
12-
LIBS_mac=( OpenSSL ICU )
13-
LIBS_ios=( OpenSSL ICU )
14-
LIBS_win32=( OpenSSL Curl ICU CEF )
15-
LIBS_linux=( OpenSSL Curl ICU CEF )
16-
LIBS_emscripten=( ICU )
11+
LIBS_android=( Thirdparty OpenSSL ICU )
12+
LIBS_mac=( Thirdparty OpenSSL ICU )
13+
LIBS_ios=( Thirdparty OpenSSL ICU )
14+
LIBS_win32=( Thirdparty OpenSSL Curl ICU CEF )
15+
LIBS_linux=( Thirdparty OpenSSL Curl ICU CEF )
16+
LIBS_emscripten=( Thirdparty ICU )
1717

1818
SUBPLATFORMS_ios=(iPhoneSimulator8.2 iPhoneSimulator9.2 iPhoneSimulator10.2 iPhoneSimulator11.2 iPhoneSimulator12.1 iPhoneOS9.2 iPhoneOS10.2 iPhoneOS11.2 iPhoneOS12.1)
1919
SUBPLATFORMS_win32=(v141_static_debug v141_static_release)

0 commit comments

Comments
 (0)