Node JS Addon for DALi + Improvements
[platform/core/uifw/dali-toolkit.git] / node-addon / binding.gyp
1 {
2   "variables": {
3     'DALI_JS_DIR%':'../plugins/dali-script-v8/src/'
4   },
5   "targets": [
6     {
7       'target_name': 'dali',
8       'include_dirs': ['<(DALI_JS_DIR)/',
9                        '<(DALI_JS_DIR)/utils'],
10       'sources': [ 'dali-addon.cpp',
11       'javascript-application-options.cpp',
12       '<(DALI_JS_DIR)/utils/v8-utils.cpp',
13       '<(DALI_JS_DIR)/dali-wrapper.cpp',
14       '<(DALI_JS_DIR)/shared/base-wrapped-object.cpp',
15       '<(DALI_JS_DIR)/shared/object-template-helper.cpp',
16       '<(DALI_JS_DIR)/actors/actor-wrapper.cpp',
17       '<(DALI_JS_DIR)/actors/actor-api.cpp',
18       '<(DALI_JS_DIR)/actors/layer-api.cpp',
19       '<(DALI_JS_DIR)/actors/image-actor-api.cpp',
20       '<(DALI_JS_DIR)/actors/camera-actor-api.cpp',
21       '<(DALI_JS_DIR)/constants/constants-wrapper.cpp',
22       '<(DALI_JS_DIR)/animation/animation-api.cpp',
23       '<(DALI_JS_DIR)/animation/animation-wrapper.cpp',
24       '<(DALI_JS_DIR)/animation/constrainer-api.cpp',
25       '<(DALI_JS_DIR)/animation/linear-constrainer-wrapper.cpp',
26       '<(DALI_JS_DIR)/animation/path-api.cpp',
27       '<(DALI_JS_DIR)/animation/path-constrainer-wrapper.cpp',
28       '<(DALI_JS_DIR)/animation/path-wrapper.cpp',
29       '<(DALI_JS_DIR)/stage/stage-wrapper.cpp',
30       '<(DALI_JS_DIR)/events/event-object-generator.cpp',
31       '<(DALI_JS_DIR)/events/pan-gesture-detector-api.cpp',
32       '<(DALI_JS_DIR)/events/pan-gesture-detector-wrapper.cpp',
33       '<(DALI_JS_DIR)/stage/stage-api.cpp',
34       '<(DALI_JS_DIR)/shader-effects/shader-effect-api.cpp',
35       '<(DALI_JS_DIR)/shader-effects/shader-effect-wrapper.cpp',
36       '<(DALI_JS_DIR)/image/image-wrapper.cpp',
37       '<(DALI_JS_DIR)/image/image-api.cpp',
38       '<(DALI_JS_DIR)/image/buffer-image-api.cpp',
39       '<(DALI_JS_DIR)/image/native-image-api.cpp',
40       '<(DALI_JS_DIR)/image/frame-buffer-image-api.cpp',
41       '<(DALI_JS_DIR)/image/resource-image-api.cpp',
42       '<(DALI_JS_DIR)/image/nine-patch-image-api.cpp',
43       '<(DALI_JS_DIR)/object/handle-wrapper.cpp',
44       '<(DALI_JS_DIR)/object/property-value-wrapper.cpp',
45       '<(DALI_JS_DIR)/signals/signal-manager.cpp',
46       '<(DALI_JS_DIR)/render-tasks/render-task-list-api.cpp',
47       '<(DALI_JS_DIR)/render-tasks/render-task-list-wrapper.cpp',
48       '<(DALI_JS_DIR)/render-tasks/render-task-api.cpp',
49       '<(DALI_JS_DIR)/render-tasks/render-task-wrapper.cpp',
50       '<(DALI_JS_DIR)/toolkit/builder/builder-api.cpp',
51       '<(DALI_JS_DIR)/toolkit/builder/builder-wrapper.cpp',
52       '<(DALI_JS_DIR)/toolkit/focus-manager/keyboard-focus-manager-api.cpp',
53       '<(DALI_JS_DIR)/toolkit/focus-manager/keyboard-focus-manager-wrapper.cpp',
54       '<(DALI_JS_DIR)/signals/dali-any-javascript-converter.cpp',
55       '<(DALI_JS_DIR)/garbage-collector/garbage-collector.cpp',
56       '<(DALI_JS_DIR)/module-loader/module.cpp',
57       '<(DALI_JS_DIR)/module-loader/module-loader.cpp'
58      ],
59       'cflags': [
60             '-fPIC',
61             '-frtti',
62             '<!@(pkg-config --cflags dali dali-toolkit)'
63         ],
64
65     'cflags_cc': [
66             '-fexceptions', # Enable exception handler
67             '-frtti'    # needed for typeinfo with dali-any
68         ],
69       'ldflags': [
70             '<!@(pkg-config --libs-only-L --libs-only-other dali dali-toolkit)'
71         ],
72       'libraries': [
73         '<!@(pkg-config --libs-only-l dali dali-toolkit)'
74       ]
75     }]
76 }