OLD | NEW |
1 { | 1 { |
2 'includes': ['third_party/v8/build/common.gypi', | 2 'includes': ['third_party/v8/build/common.gypi', |
3 'shell/shell.gyp'], | 3 'shell/shell.gyp'], |
4 'targets': [{ | 4 'targets': [{ |
5 'target_name': 'libadblockplus', | 5 'target_name': 'libadblockplus', |
6 'type': '<(library)', | 6 'type': '<(library)', |
7 'include_dirs': [ | 7 'include_dirs': [ |
8 'include', | 8 'include', |
9 'third_party/v8/include' | 9 'third_party/v8/include' |
10 ], | 10 ], |
11 'dependencies': ['third_party/v8/tools/gyp/v8.gyp:v8'], | 11 'dependencies': ['third_party/v8/tools/gyp/v8.gyp:v8'], |
12 'sources': [ | 12 'sources': [ |
13 'src/ConsoleJsObject.cpp', | 13 'src/ConsoleJsObject.cpp', |
14 'src/ErrorCallback.cpp', | 14 'src/ErrorCallback.cpp', |
15 'src/FileReader.cpp', | 15 'src/FileReader.cpp', |
16 'src/JsEngine.cpp' | 16 'src/JsEngine.cpp', |
| 17 '<(INTERMEDIATE_DIR)/adblockplus.js.cc' |
17 ], | 18 ], |
18 'direct_dependent_settings': { | 19 'direct_dependent_settings': { |
19 'include_dirs': ['include'] | 20 'include_dirs': ['include'] |
20 }, | 21 }, |
21 'export_dependent_settings': ['third_party/v8/tools/gyp/v8.gyp:v8'] | 22 'export_dependent_settings': ['third_party/v8/tools/gyp/v8.gyp:v8'], |
| 23 'actions': [{ |
| 24 'action_name': 'convert_js', |
| 25 'variables': { |
| 26 'core_library_files': [ |
| 27 'lib/info.js', |
| 28 'lib/io.js', |
| 29 'lib/prefs.js', |
| 30 'lib/utils.js', |
| 31 'lib/elemHideHitRegistration.js', |
| 32 'adblockplus/lib/filterNotifier.js', |
| 33 'adblockplus/lib/filterClasses.js', |
| 34 'adblockplus/lib/subscriptionClasses.js', |
| 35 'adblockplus/lib/filterStorage.js', |
| 36 'adblockplus/lib/elemHide.js', |
| 37 'adblockplus/lib/matcher.js', |
| 38 'adblockplus/lib/filterListener.js', |
| 39 'adblockplus/lib/synchronizer.js', |
| 40 ], |
| 41 'additional_library_files': [ |
| 42 'lib/compat.js' |
| 43 ], |
| 44 }, |
| 45 'inputs': [ |
| 46 'convert_js.py', |
| 47 '<@(core_library_files)', |
| 48 '<@(additional_library_files)', |
| 49 ], |
| 50 'outputs': [ |
| 51 '<(INTERMEDIATE_DIR)/adblockplus.js.cpp' |
| 52 ], |
| 53 'action': [ |
| 54 'python', |
| 55 'convert_js.py', |
| 56 '<@(core_library_files)', |
| 57 '--', |
| 58 '<@(additional_library_files)', |
| 59 '<@(_outputs)', |
| 60 ] |
| 61 }] |
22 }, | 62 }, |
23 { | 63 { |
24 'target_name': 'tests', | 64 'target_name': 'tests', |
25 'type': 'executable', | 65 'type': 'executable', |
26 'dependencies': [ | 66 'dependencies': [ |
27 'third_party/googletest.gyp:googletest_main', | 67 'third_party/googletest.gyp:googletest_main', |
28 'libadblockplus' | 68 'libadblockplus' |
29 ], | 69 ], |
30 'sources': [ | 70 'sources': [ |
31 'test/ConsoleJsObject.cpp', | 71 'test/ConsoleJsObject.cpp', |
32 'test/JsEngine.cpp' | 72 'test/JsEngine.cpp' |
33 ] | 73 ] |
34 }] | 74 }] |
35 } | 75 } |
OLD | NEW |