use stable cross-generator direction for referencing standalone lib + other minor fixups

This commit is contained in:
Dane Springmeyer
2014-10-29 18:13:25 -04:00
parent 4cfb4b130f
commit d8a93dbb95
9 changed files with 15 additions and 27 deletions

View File

@@ -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

View File

@@ -1,6 +1,7 @@
{
'variables': {
'install_prefix%': '',
'standalone_product_dir':'<!@(pwd)/../build'
},
'target_defaults': {
'default_configuration': 'Release',

View File

@@ -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' },

View File

@@ -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': [
{

View File

@@ -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)' ],
},
]
},
},
],

View File

@@ -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)' ],
},
]
},
},
],

View File

@@ -23,9 +23,6 @@
'-I<(boost_root)/include',
],
'libraries': [
'-L<(PRODUCT_DIR)/',
'-lmbgl',
'-lmbgl-linux',
'<@(curl_static_libs)',
'<@(png_ldflags)',
'<@(sqlite3_ldflags)',

View File

@@ -37,8 +37,6 @@
},
'variables' : {
'ldflags': [
'-L<(PRODUCT_DIR)/',
'-lmbgl',
'<@(sqlite3_ldflags)',
'<@(glfw3_static_libs)',
'<@(glfw3_ldflags)',

View File

@@ -5,8 +5,6 @@
],
'target_defaults': {
"libraries": [
'-L<(PRODUCT_DIR)/',
'-lmbgl',
'<@(uv_ldflags)',
'<@(curl_static_libs)',
'<@(png_ldflags)',