Files
MapLibreParticleLab/llmr.gyp
Konstantin Käfer 4e73a4d47c Merge branch 'master' into tessellation
Conflicts:
	include/llmr/renderer/fill_bucket.hpp
	src/renderer/fill_bucket.cpp
	src/renderer/painter.cpp
2014-02-28 12:25:45 +01:00

190 lines
4.8 KiB
Python

{
'includes': [
'./common.gypi',
'./config.gypi'
],
'targets': [
{
'target_name': 'llmr-x86',
'product_name': 'llmr-x86',
'type': 'static_library',
'sources': [
'<!@(find src -name "*.cpp")',
'<!@(find src -name "*.c")',
'<!@(find src -name "*.h")',
'<!@(find include -name "*.hpp")',
'<!@(find include -name "*.h")',
'<!@(find src -name "*.glsl")',
'bin/style.js'
],
'actions': [
{
'action_name': 'Build Shaders',
'inputs': [
'<!@(find src -name "*.glsl")'
],
'outputs': [
'include/llmr/shader/shaders.hpp',
'src/shader/shaders.cpp'
],
'action': ['bin/build-shaders.js'],
},
{
'action_name': 'Convert Style to Protobuf',
'inputs': [
'bin/style.js'
],
'outputs': [
'resources/style.pbf'
],
'action': ['bin/convert-style.js'],
},
{
'action_name': 'Update Style Resources',
'inputs': [
'resources/style.pbf'
],
'outputs': [
'include/llmr/style/resources.hpp',
'src/style/resources.cpp'
],
'action': ['bin/build-style.js']
}
],
'xcode_settings': {
'SDKROOT': 'macosx',
'SUPPORTED_PLATFORMS':['macosx'],
'MACOSX_DEPLOYMENT_TARGET':'10.8',
'PUBLIC_HEADERS_FOLDER_PATH': 'include',
'OTHER_CPLUSPLUSFLAGS':[
'<@(png_cflags)'
]
},
'include_dirs':[
'./include'
],
'cflags': [
'<@(png_cflags)'
],
'direct_dependent_settings': {
'include_dirs':[
'./include'
],
'cflags': [
'<@(png_cflags)'
],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS':[
'<@(png_cflags)'
]
},
'conditions': [
['OS == "mac"', {
'xcode_settings': {
'OTHER_LDFLAGS': [
'<@(png_libraries)'
]
}
}, {
'libraries': [
'<@(png_libraries)'
]
}]
]
}
},
{
'target_name': 'llmr-ios',
'product_name': 'llmr-ios',
'type': 'static_library',
'sources': [
'<!@(find src -name "*.cpp")',
'<!@(find src -name "*.c")',
'<!@(find src -name "*.h")',
'<!@(find include -name "*.hpp")',
'<!@(find include -name "*.h")',
'<!@(find src -name "*.glsl")',
'bin/style.js'
],
'actions': [
{
'action_name': 'Build Shaders',
'inputs': [
'<!@(find src -name "*.glsl")'
],
'outputs': [
'include/llmr/shader/shaders.hpp',
'src/shader/shaders.cpp'
],
'action': ['bin/build-shaders.js'],
},
{
'action_name': 'Convert Style to Protobuf',
'inputs': [
'bin/style.js'
],
'outputs': [
'resources/style.pbf'
],
'action': ['bin/convert-style.js'],
},
{
'action_name': 'Update Style Resources',
'inputs': [
'resources/style.pbf'
],
'outputs': [
'include/llmr/style/resources.hpp',
'src/style/resources.cpp'
],
'action': ['bin/build-style.js']
}
],
'xcode_settings': {
'SDKROOT': 'iphoneos',
'SUPPORTED_PLATFORMS':['iphonesimulator','iphoneos',],
'ARCHS': [ "armv7", "armv7s", "arm64", "i386" ],
'TARGETED_DEVICE_FAMILY': '1,2',
'CODE_SIGN_IDENTITY': 'iPhone Developer',
'IPHONEOS_DEPLOYMENT_TARGET': '5.0',
'PUBLIC_HEADERS_FOLDER_PATH': 'include',
'GCC_INPUT_FILETYPE':'sourcecode.cpp.cpp',
'OTHER_CPLUSPLUSFLAGS':[
'<@(png_cflags)'
]
},
'include_dirs':[
'./include'
],
'cflags': [
'<@(png_cflags)'
],
'direct_dependent_settings': {
'include_dirs':[
'./include'
],
'cflags': [
'<@(png_cflags)'
],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS':[
'<@(png_cflags)'
]
},
'conditions': [
['OS == "mac"', {
'xcode_settings': {
'OTHER_LDFLAGS': [
'<@(png_libraries)'
]
}
}, {
'libraries': [
'<@(png_libraries)'
]
}]
]
}
}
]
}