}],
],
},
- # Validate the 'skia_os' setting against 'skia_shared_lib', because shared
- # library build is only supported on Android.
- 'variables': {
- 'conditions': [
- [ 'skia_os != "android" and skia_shared_lib', {
- 'error': '<!(Skia shared lib build only currently supported on Android.)',
- }],
- ],
- },
'includes': [
'common_conditions.gypi',
],
'skhello',
'skimage',
],
+ 'conditions': [
+ ['skia_shared_lib',
+ {
+ 'dependencies': [
+ 'sklua', # This can only be built if skia is built as a shared library
+ ],
+ },
+ ],
+ ],
},
{
'target_name': 'skdiff',
'utils.gyp:utils',
],
},
+
{
'target_name': 'lua_app',
'type': 'executable',
},
],
'conditions': [
+ ['skia_shared_lib',
+ {
+ 'targets': [
+ {
+ 'target_name': 'sklua',
+ 'product_name': 'skia',
+ 'product_prefix': '',
+ 'product_dir': '<(PRODUCT_DIR)/',
+ 'type': 'shared_library',
+ 'sources': [
+ '../src/utils/SkLuaCanvas.cpp',
+ '../src/utils/SkLua.cpp',
+ ],
+ 'include_dirs': [
+ '../third_party/lua/src/',
+ ],
+ 'dependencies': [
+ 'lua.gyp:lua',
+ 'pdf.gyp:pdf',
+ 'skia_lib.gyp:skia_lib',
+ ],
+ 'conditions': [
+ ['skia_os != "win"',
+ {
+ 'ldflags': [
+ '-Wl,-rpath,\$$ORIGIN,--enable-new-dtags',
+ ],
+ },
+ ],
+ ],
+ },
+ ],
+ },
+ ],
['skia_win_debuggers_path and skia_os == "win"',
{
'targets': [