use stable cross-generator direction for referencing standalone lib + other minor fixups
This commit is contained in:
1
Makefile
1
Makefile
@@ -112,6 +112,7 @@ lproj: config.gypi linux/mapboxgl-app.gyp clear_xcode_cache
|
||||
clean: clear_xcode_cache
|
||||
-find ./deps/gyp -name "*.pyc" -exec rm {} \;
|
||||
-rm -rf ./build/
|
||||
-rm -rf ./macosx/build/
|
||||
-rm -rf ./config.gypi ./config-ios.gypi
|
||||
|
||||
distclean: clean
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
'variables': {
|
||||
'install_prefix%': '',
|
||||
'standalone_product_dir':'<!@(pwd)/../build'
|
||||
},
|
||||
'target_defaults': {
|
||||
'default_configuration': 'Release',
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
'mbgl-<(platform)',
|
||||
],
|
||||
'copies': [
|
||||
{ 'files': [ '<(PRODUCT_DIR)/libmbgl.a' ], 'destination': '<(install_prefix)/lib' },
|
||||
{ 'files': [ '<(standalone_product_dir)/libmbgl.a' ], 'destination': '<(install_prefix)/lib' },
|
||||
{ 'files': [ '<(PRODUCT_DIR)/libmbgl-core.a' ], 'destination': '<(install_prefix)/lib' },
|
||||
{ 'files': [ '<(PRODUCT_DIR)/libmbgl-headless.a' ], 'destination': '<(install_prefix)/lib' },
|
||||
{ 'files': [ '<(PRODUCT_DIR)/libmbgl-<(platform).a' ], 'destination': '<(install_prefix)/lib' },
|
||||
|
||||
@@ -54,12 +54,21 @@
|
||||
],
|
||||
'variables': {
|
||||
'core_lib':'<(PRODUCT_DIR)/libmbgl-core.a',
|
||||
'standalone_lib':'<(PRODUCT_DIR)/libmbgl.a'
|
||||
'standalone_lib':'<(standalone_product_dir)/libmbgl.a'
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'../include',
|
||||
],
|
||||
'conditions': [
|
||||
['OS == "mac"', {
|
||||
'xcode_settings': {
|
||||
'OTHER_LDFLAGS': [ '<(standalone_lib)' ],
|
||||
}
|
||||
}, {
|
||||
'ldflags': [ '<(standalone_lib)' ],
|
||||
}]
|
||||
],
|
||||
},
|
||||
'actions': [
|
||||
{
|
||||
|
||||
@@ -41,18 +41,10 @@
|
||||
'xcode_settings': {
|
||||
'OTHER_CPLUSPLUSFLAGS': [ '<@(uv_cflags)' ],
|
||||
},
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'<@(uv_static_libs)',
|
||||
],
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'../include',
|
||||
],
|
||||
'xcode_settings': {
|
||||
'OTHER_LDFLAGS': [ '<@(uv_ldflags)' ],
|
||||
},
|
||||
]
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -17,18 +17,10 @@
|
||||
'xcode_settings': {
|
||||
'OTHER_CPLUSPLUSFLAGS': [ '<@(uv_cflags)' ],
|
||||
},
|
||||
'link_settings': {
|
||||
'libraries': [
|
||||
'<@(uv_static_libs)',
|
||||
],
|
||||
},
|
||||
'direct_dependent_settings': {
|
||||
'include_dirs': [
|
||||
'../include',
|
||||
],
|
||||
'xcode_settings': {
|
||||
'OTHER_LDFLAGS': [ '<@(uv_ldflags)' ],
|
||||
},
|
||||
]
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -23,9 +23,6 @@
|
||||
'-I<(boost_root)/include',
|
||||
],
|
||||
'libraries': [
|
||||
'-L<(PRODUCT_DIR)/',
|
||||
'-lmbgl',
|
||||
'-lmbgl-linux',
|
||||
'<@(curl_static_libs)',
|
||||
'<@(png_ldflags)',
|
||||
'<@(sqlite3_ldflags)',
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
},
|
||||
'variables' : {
|
||||
'ldflags': [
|
||||
'-L<(PRODUCT_DIR)/',
|
||||
'-lmbgl',
|
||||
'<@(sqlite3_ldflags)',
|
||||
'<@(glfw3_static_libs)',
|
||||
'<@(glfw3_ldflags)',
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
],
|
||||
'target_defaults': {
|
||||
"libraries": [
|
||||
'-L<(PRODUCT_DIR)/',
|
||||
'-lmbgl',
|
||||
'<@(uv_ldflags)',
|
||||
'<@(curl_static_libs)',
|
||||
'<@(png_ldflags)',
|
||||
|
||||
Reference in New Issue
Block a user