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

Side by Side Diff: meson.build

Issue 29537638: Issue 6226 - Use mesonbuild as a build system (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Created Sept. 6, 2017, 2:27 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 project('libadblockplus', 'cpp', default_options : ['cpp_std=c++14'])
2
3 V8_DIR='third_party/v8'
4 V8_GYP=meson.source_root() + '/third_party/gyp/gyp'
5
6 have_curl = dependency('curl', required: false)
7 incdir = include_directories('include', V8_DIR + '/include')
8
9 ensure_dependencies = run_target('ensure_dependencies',
10 command: ['python', 'ensure_dependencies.py'])
11
12 sources = files(
13 'include/AdblockPlus/ITimer.h',
14 'include/AdblockPlus/IWebRequest.h',
15 'include/AdblockPlus/IFileSystem.h',
16 'include/AdblockPlus/Scheduler.h',
17 'include/AdblockPlus/Platform.h',
18 'src/AppInfoJsObject.cpp',
19 'src/ConsoleJsObject.cpp',
20 'src/DefaultLogSystem.cpp',
21 'src/DefaultFileSystem.h',
22 'src/DefaultFileSystem.cpp',
23 'src/DefaultTimer.cpp',
24 'src/DefaultTimer.h',
25 'src/DefaultWebRequest.h',
26 'src/DefaultWebRequest.cpp',
27 'src/FileSystemJsObject.cpp',
28 'src/FilterEngine.cpp',
29 'src/GlobalJsObject.cpp',
30 'src/JsContext.cpp',
31 'src/JsEngine.cpp',
32 'src/JsError.cpp',
33 'src/JsValue.cpp',
34 'src/Notification.cpp',
35 'src/Platform.cpp',
36 'src/ReferrerMapping.cpp',
37 'src/Thread.cpp',
38 'src/Utils.cpp',
39 'src/WebRequestJsObject.cpp',
40 )
41
42 if have_curl.found() == 1
43 sources += files('src/DefaultWebRequestCurl.cpp')
44 endif
45
46 GYP_PARAMETERS=[ '-D', 'host_arch=x86_64', '-D', 'OS=mac',
47 '-D', 'target_arch=x86_64' ]
48
49 build_v8 = custom_target('build_v8', input: files('build-v8.gypi', V8_DIR + '/sr c/v8.gyp'), output: 'Makefile',
50 command: [ V8_GYP, GYP_PARAMETERS, '--depth=.', '-f', 'make', '-I', '@INPUT0 @', '--generator-output=v8', '@INPUT1@' ])
51
52 v8 = custom_target('v8', input: build_v8,
53 output: [ 'libv8_base.a', 'libv8_libbase.a' ],
54 command: [ 'make', '-C', 'v8', 'v8_base' ])
55 v8_libplatform = custom_target('v8_libplatform',
56 input: [ build_v8, v8 ], output: 'libv8_libplatform.a',
57 command: [ 'make', '-C', 'v8', 'v8_libplatform' ])
58 v8_libsampler = custom_target('v8_libsampler',
59 input: [ build_v8, v8_libplatform ], output: 'libv8_libsampler.a',
60 command: [ 'make', '-C', 'v8', 'v8_libsampler' ])
61 v8_snapshot = custom_target('v8_snapshot',
62 input: [ build_v8, v8_libsampler ], output: 'libv8_snapshot.a',
63 command: [ 'make', '-C', 'v8', 'v8_snapshot' ])
64
65 adblockplus = shared_library('adblockplus', sources,
66 v8_snapshot, v8_libplatform,
67 v8_libsampler, include_directories: incdir,
68 dependencies: [ have_curl ])
69
70 test_sources = files(
71 'test/BaseJsTest.h',
72 'test/BaseJsTest.cpp',
73 'test/AppInfoJsObject.cpp',
74 'test/ConsoleJsObject.cpp',
75 'test/DefaultFileSystem.cpp',
76 'test/FileSystemJsObject.cpp',
77 'test/FilterEngine.cpp',
78 'test/GlobalJsObject.cpp',
79 'test/JsEngine.cpp',
80 'test/JsValue.cpp',
81 'test/Notification.cpp',
82 'test/Prefs.cpp',
83 'test/ReferrerMapping.cpp',
84 'test/UpdateCheck.cpp',
85 'test/WebRequest.cpp'
86 )
87
88 #gtest = dependency('gtest', main: true, required: false)
89
90 #executable('tests', test_sources, adblockplus, include_directories: incdir, dep endencies: gtest)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld