Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: libadblockplus.gyp

Issue 9846017: Make JavaScript sources compile into the library; convert JavaScript files on the fly (Closed)
Patch Set: Created March 14, 2013, 10:02 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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 'adblockplus/lib/filterNotifier.js',
28 'adblockplus/lib/filterClasses.js',
29 'adblockplus/lib/subscriptionClasses.js',
30 'adblockplus/lib/filterStorage.js',
31 'adblockplus/lib/elemHide.js',
32 'adblockplus/lib/matcher.js',
33 'adblockplus/lib/filterListener.js',
34 'adblockplus/lib/synchronizer.js',
35 ],
36 'additional_library_files': [
37 'lib/adblockplus_compat.js'
38 ],
39 },
40 'inputs': [
41 'convert_js.py',
42 '<@(core_library_files)',
43 '<@(additional_library_files)',
44 ],
45 'outputs': [
46 '<(INTERMEDIATE_DIR)/adblockplus.js.cpp'
47 ],
48 'action': [
49 'python',
50 'convert_js.py',
51 '<@(core_library_files)',
52 '--',
53 '<@(additional_library_files)',
54 '<@(_outputs)',
55 ]
56 }]
22 }, 57 },
23 { 58 {
24 'target_name': 'tests', 59 'target_name': 'tests',
25 'type': 'executable', 60 'type': 'executable',
26 'dependencies': [ 61 'dependencies': [
27 'third_party/googletest.gyp:googletest_main', 62 'third_party/googletest.gyp:googletest_main',
28 'libadblockplus' 63 'libadblockplus'
29 ], 64 ],
30 'sources': [ 65 'sources': [
31 'test/ConsoleJsObject.cpp', 66 'test/ConsoleJsObject.cpp',
32 'test/JsEngine.cpp' 67 'test/JsEngine.cpp'
33 ] 68 ]
34 }] 69 }]
35 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld