libv8 3.16.14.1 → 3.16.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1025) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +3 -0
  3. data/.travis.yml +2 -1
  4. data/README.md +13 -0
  5. data/Rakefile +6 -11
  6. data/ext/libv8/arch.rb +1 -1
  7. data/ext/libv8/builder.rb +31 -3
  8. data/ext/libv8/checkout.rb +48 -0
  9. data/ext/libv8/compiler.rb +6 -1
  10. data/lib/libv8/version.rb +1 -1
  11. data/libv8.gemspec +3 -0
  12. data/patches/disable-building-tests.patch +25 -0
  13. data/patches/do-not-imply-vfp3-and-armv7.patch +28 -0
  14. data/patches/fPIC-for-static.patch +13 -0
  15. data/patches/gcc48-wno-unused-local-typedefs.patch +28 -0
  16. data/spec/location_spec.rb +3 -3
  17. data/vendor/gyp/.gitignore +1 -0
  18. data/vendor/gyp/AUTHORS +6 -0
  19. data/vendor/gyp/DEPS +26 -0
  20. data/vendor/gyp/LICENSE +27 -0
  21. data/vendor/gyp/MANIFEST +21 -0
  22. data/vendor/gyp/OWNERS +1 -0
  23. data/vendor/gyp/PRESUBMIT.py +109 -0
  24. data/vendor/gyp/buildbot/buildbot_run.py +98 -0
  25. data/vendor/gyp/codereview.settings +10 -0
  26. data/vendor/gyp/gyp +18 -0
  27. data/vendor/gyp/gyp.bat +5 -0
  28. data/vendor/gyp/gyp_dummy.c +7 -0
  29. data/vendor/gyp/gyptest.py +266 -0
  30. data/vendor/gyp/pylib/gyp/MSVSNew.py +341 -0
  31. data/vendor/gyp/pylib/gyp/MSVSProject.py +208 -0
  32. data/vendor/gyp/pylib/gyp/MSVSSettings.py +1046 -0
  33. data/vendor/gyp/pylib/gyp/MSVSSettings_test.py +1482 -0
  34. data/vendor/gyp/pylib/gyp/MSVSToolFile.py +58 -0
  35. data/vendor/gyp/pylib/gyp/MSVSUserFile.py +147 -0
  36. data/vendor/gyp/pylib/gyp/MSVSVersion.py +366 -0
  37. data/vendor/gyp/pylib/gyp/SCons.py +199 -0
  38. data/vendor/gyp/pylib/gyp/__init__.py +520 -0
  39. data/vendor/gyp/pylib/gyp/common.py +473 -0
  40. data/vendor/gyp/pylib/gyp/common_test.py +71 -0
  41. data/vendor/gyp/pylib/gyp/easy_xml.py +157 -0
  42. data/vendor/gyp/pylib/gyp/easy_xml_test.py +103 -0
  43. data/vendor/gyp/pylib/gyp/generator/__init__.py +0 -0
  44. data/vendor/gyp/pylib/gyp/generator/android.py +1077 -0
  45. data/vendor/gyp/pylib/gyp/generator/dump_dependency_json.py +66 -0
  46. data/vendor/gyp/pylib/gyp/generator/eclipse.py +273 -0
  47. data/vendor/gyp/pylib/gyp/generator/gypd.py +87 -0
  48. data/vendor/gyp/pylib/gyp/generator/gypsh.py +56 -0
  49. data/vendor/gyp/pylib/gyp/generator/make.py +2177 -0
  50. data/vendor/gyp/pylib/gyp/generator/msvs.py +3165 -0
  51. data/vendor/gyp/pylib/gyp/generator/msvs_test.py +35 -0
  52. data/vendor/gyp/pylib/gyp/generator/ninja.py +1744 -0
  53. data/vendor/gyp/pylib/gyp/generator/ninja_test.py +44 -0
  54. data/vendor/gyp/pylib/gyp/generator/scons.py +1072 -0
  55. data/vendor/gyp/pylib/gyp/generator/xcode.py +1230 -0
  56. data/vendor/gyp/pylib/gyp/input.py +2487 -0
  57. data/vendor/gyp/pylib/gyp/mac_tool.py +210 -0
  58. data/vendor/gyp/pylib/gyp/msvs_emulation.py +691 -0
  59. data/vendor/gyp/pylib/gyp/ninja_syntax.py +152 -0
  60. data/vendor/gyp/pylib/gyp/sun_tool.py +51 -0
  61. data/vendor/gyp/pylib/gyp/system_test.py +68 -0
  62. data/vendor/gyp/pylib/gyp/win_tool.py +193 -0
  63. data/vendor/gyp/pylib/gyp/xcode_emulation.py +1065 -0
  64. data/vendor/gyp/pylib/gyp/xcodeproj_file.py +2868 -0
  65. data/vendor/gyp/pylib/gyp/xml_fix.py +69 -0
  66. data/vendor/gyp/pylintrc +307 -0
  67. data/vendor/gyp/samples/samples +81 -0
  68. data/vendor/gyp/samples/samples.bat +5 -0
  69. data/vendor/gyp/setup.py +26 -0
  70. data/vendor/gyp/test/actions-bare/gyptest-bare.py +23 -0
  71. data/vendor/gyp/test/actions-bare/src/bare.gyp +25 -0
  72. data/vendor/gyp/test/actions-bare/src/bare.py +11 -0
  73. data/vendor/gyp/test/actions-multiple/gyptest-all.py +72 -0
  74. data/vendor/gyp/test/actions-multiple/src/actions.gyp +226 -0
  75. data/vendor/gyp/test/actions-multiple/src/copy.py +9 -0
  76. data/vendor/gyp/test/actions-multiple/src/filter.py +12 -0
  77. data/vendor/gyp/test/actions-multiple/src/foo.c +11 -0
  78. data/vendor/gyp/test/actions-multiple/src/input.txt +1 -0
  79. data/vendor/gyp/test/actions-multiple/src/main.c +22 -0
  80. data/vendor/gyp/test/actions-none/gyptest-none.py +26 -0
  81. data/vendor/gyp/test/actions-none/src/fake_cross.py +12 -0
  82. data/vendor/gyp/test/actions-none/src/foo.cc +1 -0
  83. data/vendor/gyp/test/actions-none/src/none_with_source_files.gyp +35 -0
  84. data/vendor/gyp/test/actions-subdir/gyptest-action.py +26 -0
  85. data/vendor/gyp/test/actions-subdir/src/make-file.py +11 -0
  86. data/vendor/gyp/test/actions-subdir/src/none.gyp +31 -0
  87. data/vendor/gyp/test/actions-subdir/src/subdir/make-subdir-file.py +11 -0
  88. data/vendor/gyp/test/actions-subdir/src/subdir/subdir.gyp +28 -0
  89. data/vendor/gyp/test/actions/gyptest-all.py +102 -0
  90. data/vendor/gyp/test/actions/gyptest-default.py +69 -0
  91. data/vendor/gyp/test/actions/gyptest-errors.py +24 -0
  92. data/vendor/gyp/test/actions/src/action_missing_name.gyp +24 -0
  93. data/vendor/gyp/test/actions/src/actions.gyp +114 -0
  94. data/vendor/gyp/test/actions/src/confirm-dep-files.py +21 -0
  95. data/vendor/gyp/test/actions/src/subdir1/counter.py +46 -0
  96. data/vendor/gyp/test/actions/src/subdir1/executable.gyp +74 -0
  97. data/vendor/gyp/test/actions/src/subdir1/make-prog1.py +20 -0
  98. data/vendor/gyp/test/actions/src/subdir1/make-prog2.py +20 -0
  99. data/vendor/gyp/test/actions/src/subdir1/program.c +12 -0
  100. data/vendor/gyp/test/actions/src/subdir2/make-file.py +11 -0
  101. data/vendor/gyp/test/actions/src/subdir2/none.gyp +33 -0
  102. data/vendor/gyp/test/actions/src/subdir3/generate_main.py +21 -0
  103. data/vendor/gyp/test/actions/src/subdir3/null_input.gyp +29 -0
  104. data/vendor/gyp/test/additional-targets/gyptest-additional.py +56 -0
  105. data/vendor/gyp/test/additional-targets/src/all.gyp +13 -0
  106. data/vendor/gyp/test/additional-targets/src/dir1/actions.gyp +56 -0
  107. data/vendor/gyp/test/additional-targets/src/dir1/emit.py +11 -0
  108. data/vendor/gyp/test/additional-targets/src/dir1/lib1.c +6 -0
  109. data/vendor/gyp/test/assembly/gyptest-assembly.py +31 -0
  110. data/vendor/gyp/test/assembly/src/as.bat +4 -0
  111. data/vendor/gyp/test/assembly/src/assembly.gyp +62 -0
  112. data/vendor/gyp/test/assembly/src/lib1.S +15 -0
  113. data/vendor/gyp/test/assembly/src/lib1.c +3 -0
  114. data/vendor/gyp/test/assembly/src/program.c +12 -0
  115. data/vendor/gyp/test/build-option/gyptest-build.py +22 -0
  116. data/vendor/gyp/test/build-option/hello.c +13 -0
  117. data/vendor/gyp/test/build-option/hello.gyp +15 -0
  118. data/vendor/gyp/test/builddir/gyptest-all.py +85 -0
  119. data/vendor/gyp/test/builddir/gyptest-default.py +85 -0
  120. data/vendor/gyp/test/builddir/src/builddir.gypi +21 -0
  121. data/vendor/gyp/test/builddir/src/func1.c +6 -0
  122. data/vendor/gyp/test/builddir/src/func2.c +6 -0
  123. data/vendor/gyp/test/builddir/src/func3.c +6 -0
  124. data/vendor/gyp/test/builddir/src/func4.c +6 -0
  125. data/vendor/gyp/test/builddir/src/func5.c +6 -0
  126. data/vendor/gyp/test/builddir/src/prog1.c +10 -0
  127. data/vendor/gyp/test/builddir/src/prog1.gyp +30 -0
  128. data/vendor/gyp/test/builddir/src/subdir2/prog2.c +10 -0
  129. data/vendor/gyp/test/builddir/src/subdir2/prog2.gyp +19 -0
  130. data/vendor/gyp/test/builddir/src/subdir2/subdir3/prog3.c +10 -0
  131. data/vendor/gyp/test/builddir/src/subdir2/subdir3/prog3.gyp +19 -0
  132. data/vendor/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.c +10 -0
  133. data/vendor/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.gyp +19 -0
  134. data/vendor/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.c +10 -0
  135. data/vendor/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.gyp +19 -0
  136. data/vendor/gyp/test/cflags/cflags.c +15 -0
  137. data/vendor/gyp/test/cflags/cflags.gyp +16 -0
  138. data/vendor/gyp/test/cflags/gyptest-cflags.py +65 -0
  139. data/vendor/gyp/test/compilable/gyptest-headers.py +29 -0
  140. data/vendor/gyp/test/compilable/src/headers.gyp +26 -0
  141. data/vendor/gyp/test/compilable/src/lib1.cpp +7 -0
  142. data/vendor/gyp/test/compilable/src/lib1.hpp +6 -0
  143. data/vendor/gyp/test/compilable/src/program.cpp +9 -0
  144. data/vendor/gyp/test/compiler-override/compiler-global-settings.gyp.in +34 -0
  145. data/vendor/gyp/test/compiler-override/compiler-host.gyp +17 -0
  146. data/vendor/gyp/test/compiler-override/compiler.gyp +16 -0
  147. data/vendor/gyp/test/compiler-override/cxxtest.cc +7 -0
  148. data/vendor/gyp/test/compiler-override/gyptest-compiler-env.py +55 -0
  149. data/vendor/gyp/test/compiler-override/gyptest-compiler-global-settings.py +52 -0
  150. data/vendor/gyp/test/compiler-override/my_cc.py +6 -0
  151. data/vendor/gyp/test/compiler-override/my_cxx.py +6 -0
  152. data/vendor/gyp/test/compiler-override/my_ld.py +6 -0
  153. data/vendor/gyp/test/compiler-override/test.c +7 -0
  154. data/vendor/gyp/test/configurations/basics/configurations.c +15 -0
  155. data/vendor/gyp/test/configurations/basics/configurations.gyp +32 -0
  156. data/vendor/gyp/test/configurations/basics/gyptest-configurations.py +29 -0
  157. data/vendor/gyp/test/configurations/inheritance/configurations.c +21 -0
  158. data/vendor/gyp/test/configurations/inheritance/configurations.gyp +40 -0
  159. data/vendor/gyp/test/configurations/inheritance/gyptest-inheritance.py +33 -0
  160. data/vendor/gyp/test/configurations/invalid/actions.gyp +18 -0
  161. data/vendor/gyp/test/configurations/invalid/all_dependent_settings.gyp +18 -0
  162. data/vendor/gyp/test/configurations/invalid/configurations.gyp +18 -0
  163. data/vendor/gyp/test/configurations/invalid/dependencies.gyp +18 -0
  164. data/vendor/gyp/test/configurations/invalid/direct_dependent_settings.gyp +18 -0
  165. data/vendor/gyp/test/configurations/invalid/gyptest-configurations.py +38 -0
  166. data/vendor/gyp/test/configurations/invalid/libraries.gyp +18 -0
  167. data/vendor/gyp/test/configurations/invalid/link_settings.gyp +18 -0
  168. data/vendor/gyp/test/configurations/invalid/sources.gyp +18 -0
  169. data/vendor/gyp/test/configurations/invalid/target_name.gyp +18 -0
  170. data/vendor/gyp/test/configurations/invalid/type.gyp +18 -0
  171. data/vendor/gyp/test/configurations/target_platform/configurations.gyp +58 -0
  172. data/vendor/gyp/test/configurations/target_platform/front.c +8 -0
  173. data/vendor/gyp/test/configurations/target_platform/gyptest-target_platform.py +40 -0
  174. data/vendor/gyp/test/configurations/target_platform/left.c +3 -0
  175. data/vendor/gyp/test/configurations/target_platform/right.c +3 -0
  176. data/vendor/gyp/test/configurations/x64/configurations.c +12 -0
  177. data/vendor/gyp/test/configurations/x64/configurations.gyp +38 -0
  178. data/vendor/gyp/test/configurations/x64/gyptest-x86.py +31 -0
  179. data/vendor/gyp/test/copies/gyptest-all.py +40 -0
  180. data/vendor/gyp/test/copies/gyptest-default.py +40 -0
  181. data/vendor/gyp/test/copies/gyptest-slash.py +38 -0
  182. data/vendor/gyp/test/copies/gyptest-updir.py +23 -0
  183. data/vendor/gyp/test/copies/src/copies-slash.gyp +36 -0
  184. data/vendor/gyp/test/copies/src/copies-updir.gyp +21 -0
  185. data/vendor/gyp/test/copies/src/copies.gyp +70 -0
  186. data/vendor/gyp/test/copies/src/directory/file3 +1 -0
  187. data/vendor/gyp/test/copies/src/directory/file4 +1 -0
  188. data/vendor/gyp/test/copies/src/directory/subdir/file5 +1 -0
  189. data/vendor/gyp/test/copies/src/file1 +1 -0
  190. data/vendor/gyp/test/copies/src/file2 +1 -0
  191. data/vendor/gyp/test/copies/src/parentdir/subdir/file6 +1 -0
  192. data/vendor/gyp/test/custom-generator/gyptest-custom-generator.py +18 -0
  193. data/vendor/gyp/test/custom-generator/mygenerator.py +14 -0
  194. data/vendor/gyp/test/custom-generator/test.gyp +15 -0
  195. data/vendor/gyp/test/cxxflags/cxxflags.cc +15 -0
  196. data/vendor/gyp/test/cxxflags/cxxflags.gyp +16 -0
  197. data/vendor/gyp/test/cxxflags/gyptest-cxxflags.py +65 -0
  198. data/vendor/gyp/test/defines-escaping/defines-escaping.c +11 -0
  199. data/vendor/gyp/test/defines-escaping/defines-escaping.gyp +19 -0
  200. data/vendor/gyp/test/defines-escaping/gyptest-defines-escaping.py +184 -0
  201. data/vendor/gyp/test/defines/defines-env.gyp +22 -0
  202. data/vendor/gyp/test/defines/defines.c +23 -0
  203. data/vendor/gyp/test/defines/defines.gyp +38 -0
  204. data/vendor/gyp/test/defines/gyptest-define-override.py +34 -0
  205. data/vendor/gyp/test/defines/gyptest-defines-env-regyp.py +51 -0
  206. data/vendor/gyp/test/defines/gyptest-defines-env.py +85 -0
  207. data/vendor/gyp/test/defines/gyptest-defines.py +27 -0
  208. data/vendor/gyp/test/dependencies/a.c +9 -0
  209. data/vendor/gyp/test/dependencies/b/b.c +3 -0
  210. data/vendor/gyp/test/dependencies/b/b.gyp +22 -0
  211. data/vendor/gyp/test/dependencies/b/b3.c +9 -0
  212. data/vendor/gyp/test/dependencies/c/c.c +4 -0
  213. data/vendor/gyp/test/dependencies/c/c.gyp +22 -0
  214. data/vendor/gyp/test/dependencies/c/d.c +3 -0
  215. data/vendor/gyp/test/dependencies/double_dependency.gyp +23 -0
  216. data/vendor/gyp/test/dependencies/double_dependent.gyp +12 -0
  217. data/vendor/gyp/test/dependencies/extra_targets.gyp +18 -0
  218. data/vendor/gyp/test/dependencies/gyptest-double-dependency.py +19 -0
  219. data/vendor/gyp/test/dependencies/gyptest-extra-targets.py +21 -0
  220. data/vendor/gyp/test/dependencies/gyptest-lib-only.py +39 -0
  221. data/vendor/gyp/test/dependencies/gyptest-none-traversal.py +25 -0
  222. data/vendor/gyp/test/dependencies/lib_only.gyp +16 -0
  223. data/vendor/gyp/test/dependencies/main.c +14 -0
  224. data/vendor/gyp/test/dependencies/none_traversal.gyp +46 -0
  225. data/vendor/gyp/test/dependency-copy/gyptest-copy.py +26 -0
  226. data/vendor/gyp/test/dependency-copy/src/copies.gyp +25 -0
  227. data/vendor/gyp/test/dependency-copy/src/file1.c +7 -0
  228. data/vendor/gyp/test/dependency-copy/src/file2.c +7 -0
  229. data/vendor/gyp/test/errors/duplicate_basenames.gyp +13 -0
  230. data/vendor/gyp/test/errors/duplicate_node.gyp +12 -0
  231. data/vendor/gyp/test/errors/duplicate_rule.gyp +22 -0
  232. data/vendor/gyp/test/errors/duplicate_targets.gyp +14 -0
  233. data/vendor/gyp/test/errors/gyptest-errors.py +49 -0
  234. data/vendor/gyp/test/errors/missing_dep.gyp +15 -0
  235. data/vendor/gyp/test/errors/missing_targets.gyp +8 -0
  236. data/vendor/gyp/test/escaping/colon/test.gyp +21 -0
  237. data/vendor/gyp/test/escaping/gyptest-colon.py +43 -0
  238. data/vendor/gyp/test/exclusion/exclusion.gyp +23 -0
  239. data/vendor/gyp/test/exclusion/gyptest-exclusion.py +22 -0
  240. data/vendor/gyp/test/exclusion/hello.c +15 -0
  241. data/vendor/gyp/test/external-cross-compile/gyptest-cross.py +35 -0
  242. data/vendor/gyp/test/external-cross-compile/src/bogus1.cc +1 -0
  243. data/vendor/gyp/test/external-cross-compile/src/bogus2.c +1 -0
  244. data/vendor/gyp/test/external-cross-compile/src/cross.gyp +83 -0
  245. data/vendor/gyp/test/external-cross-compile/src/cross_compile.gypi +23 -0
  246. data/vendor/gyp/test/external-cross-compile/src/fake_cross.py +18 -0
  247. data/vendor/gyp/test/external-cross-compile/src/program.cc +16 -0
  248. data/vendor/gyp/test/external-cross-compile/src/test1.cc +1 -0
  249. data/vendor/gyp/test/external-cross-compile/src/test2.c +1 -0
  250. data/vendor/gyp/test/external-cross-compile/src/test3.cc +1 -0
  251. data/vendor/gyp/test/external-cross-compile/src/test4.c +1 -0
  252. data/vendor/gyp/test/external-cross-compile/src/tochar.py +13 -0
  253. data/vendor/gyp/test/generator-output/actions/actions.gyp +16 -0
  254. data/vendor/gyp/test/generator-output/actions/build/README.txt +4 -0
  255. data/vendor/gyp/test/generator-output/actions/subdir1/actions-out/README.txt +4 -0
  256. data/vendor/gyp/test/generator-output/actions/subdir1/build/README.txt +4 -0
  257. data/vendor/gyp/test/generator-output/actions/subdir1/executable.gyp +44 -0
  258. data/vendor/gyp/test/generator-output/actions/subdir1/make-prog1.py +20 -0
  259. data/vendor/gyp/test/generator-output/actions/subdir1/make-prog2.py +20 -0
  260. data/vendor/gyp/test/generator-output/actions/subdir1/program.c +12 -0
  261. data/vendor/gyp/test/generator-output/actions/subdir2/actions-out/README.txt +4 -0
  262. data/vendor/gyp/test/generator-output/actions/subdir2/build/README.txt +4 -0
  263. data/vendor/gyp/test/generator-output/actions/subdir2/make-file.py +11 -0
  264. data/vendor/gyp/test/generator-output/actions/subdir2/none.gyp +31 -0
  265. data/vendor/gyp/test/generator-output/copies/build/README.txt +4 -0
  266. data/vendor/gyp/test/generator-output/copies/copies-out/README.txt +4 -0
  267. data/vendor/gyp/test/generator-output/copies/copies.gyp +50 -0
  268. data/vendor/gyp/test/generator-output/copies/file1 +1 -0
  269. data/vendor/gyp/test/generator-output/copies/file2 +1 -0
  270. data/vendor/gyp/test/generator-output/copies/subdir/build/README.txt +4 -0
  271. data/vendor/gyp/test/generator-output/copies/subdir/copies-out/README.txt +4 -0
  272. data/vendor/gyp/test/generator-output/copies/subdir/file3 +1 -0
  273. data/vendor/gyp/test/generator-output/copies/subdir/file4 +1 -0
  274. data/vendor/gyp/test/generator-output/copies/subdir/subdir.gyp +32 -0
  275. data/vendor/gyp/test/generator-output/gyptest-actions.py +58 -0
  276. data/vendor/gyp/test/generator-output/gyptest-copies.py +59 -0
  277. data/vendor/gyp/test/generator-output/gyptest-mac-bundle.py +29 -0
  278. data/vendor/gyp/test/generator-output/gyptest-relocate.py +60 -0
  279. data/vendor/gyp/test/generator-output/gyptest-rules.py +59 -0
  280. data/vendor/gyp/test/generator-output/gyptest-subdir2-deep.py +37 -0
  281. data/vendor/gyp/test/generator-output/gyptest-top-all.py +54 -0
  282. data/vendor/gyp/test/generator-output/mac-bundle/Info.plist +32 -0
  283. data/vendor/gyp/test/generator-output/mac-bundle/app.order +1 -0
  284. data/vendor/gyp/test/generator-output/mac-bundle/header.h +1 -0
  285. data/vendor/gyp/test/generator-output/mac-bundle/main.c +1 -0
  286. data/vendor/gyp/test/generator-output/mac-bundle/resource.sb +1 -0
  287. data/vendor/gyp/test/generator-output/mac-bundle/test.gyp +25 -0
  288. data/vendor/gyp/test/generator-output/rules/build/README.txt +4 -0
  289. data/vendor/gyp/test/generator-output/rules/copy-file.py +12 -0
  290. data/vendor/gyp/test/generator-output/rules/rules.gyp +16 -0
  291. data/vendor/gyp/test/generator-output/rules/subdir1/build/README.txt +4 -0
  292. data/vendor/gyp/test/generator-output/rules/subdir1/define3.in0 +1 -0
  293. data/vendor/gyp/test/generator-output/rules/subdir1/define4.in0 +1 -0
  294. data/vendor/gyp/test/generator-output/rules/subdir1/executable.gyp +59 -0
  295. data/vendor/gyp/test/generator-output/rules/subdir1/function1.in1 +6 -0
  296. data/vendor/gyp/test/generator-output/rules/subdir1/function2.in1 +6 -0
  297. data/vendor/gyp/test/generator-output/rules/subdir1/program.c +18 -0
  298. data/vendor/gyp/test/generator-output/rules/subdir2/build/README.txt +4 -0
  299. data/vendor/gyp/test/generator-output/rules/subdir2/file1.in0 +1 -0
  300. data/vendor/gyp/test/generator-output/rules/subdir2/file2.in0 +1 -0
  301. data/vendor/gyp/test/generator-output/rules/subdir2/file3.in1 +1 -0
  302. data/vendor/gyp/test/generator-output/rules/subdir2/file4.in1 +1 -0
  303. data/vendor/gyp/test/generator-output/rules/subdir2/none.gyp +49 -0
  304. data/vendor/gyp/test/generator-output/rules/subdir2/rules-out/README.txt +4 -0
  305. data/vendor/gyp/test/generator-output/src/build/README.txt +4 -0
  306. data/vendor/gyp/test/generator-output/src/inc.h +1 -0
  307. data/vendor/gyp/test/generator-output/src/inc1/include1.h +1 -0
  308. data/vendor/gyp/test/generator-output/src/prog1.c +18 -0
  309. data/vendor/gyp/test/generator-output/src/prog1.gyp +28 -0
  310. data/vendor/gyp/test/generator-output/src/subdir2/build/README.txt +4 -0
  311. data/vendor/gyp/test/generator-output/src/subdir2/deeper/build/README.txt +4 -0
  312. data/vendor/gyp/test/generator-output/src/subdir2/deeper/deeper.c +7 -0
  313. data/vendor/gyp/test/generator-output/src/subdir2/deeper/deeper.gyp +18 -0
  314. data/vendor/gyp/test/generator-output/src/subdir2/deeper/deeper.h +1 -0
  315. data/vendor/gyp/test/generator-output/src/subdir2/inc2/include2.h +1 -0
  316. data/vendor/gyp/test/generator-output/src/subdir2/prog2.c +18 -0
  317. data/vendor/gyp/test/generator-output/src/subdir2/prog2.gyp +28 -0
  318. data/vendor/gyp/test/generator-output/src/subdir3/build/README.txt +4 -0
  319. data/vendor/gyp/test/generator-output/src/subdir3/inc3/include3.h +1 -0
  320. data/vendor/gyp/test/generator-output/src/subdir3/prog3.c +18 -0
  321. data/vendor/gyp/test/generator-output/src/subdir3/prog3.gyp +25 -0
  322. data/vendor/gyp/test/generator-output/src/symroot.gypi +16 -0
  323. data/vendor/gyp/test/gyp-defines/defines.gyp +26 -0
  324. data/vendor/gyp/test/gyp-defines/echo.py +11 -0
  325. data/vendor/gyp/test/gyp-defines/gyptest-multiple-values.py +34 -0
  326. data/vendor/gyp/test/gyp-defines/gyptest-regyp.py +40 -0
  327. data/vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py +37 -0
  328. data/vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py +36 -0
  329. data/vendor/gyp/test/hard_dependency/src/a.c +9 -0
  330. data/vendor/gyp/test/hard_dependency/src/a.h +12 -0
  331. data/vendor/gyp/test/hard_dependency/src/b.c +9 -0
  332. data/vendor/gyp/test/hard_dependency/src/b.h +12 -0
  333. data/vendor/gyp/test/hard_dependency/src/c.c +10 -0
  334. data/vendor/gyp/test/hard_dependency/src/c.h +10 -0
  335. data/vendor/gyp/test/hard_dependency/src/d.c +9 -0
  336. data/vendor/gyp/test/hard_dependency/src/emit.py +11 -0
  337. data/vendor/gyp/test/hard_dependency/src/hard_dependency.gyp +78 -0
  338. data/vendor/gyp/test/hello/gyptest-all.py +24 -0
  339. data/vendor/gyp/test/hello/gyptest-default.py +24 -0
  340. data/vendor/gyp/test/hello/gyptest-disable-regyp.py +32 -0
  341. data/vendor/gyp/test/hello/gyptest-regyp.py +32 -0
  342. data/vendor/gyp/test/hello/gyptest-target.py +24 -0
  343. data/vendor/gyp/test/hello/hello.c +11 -0
  344. data/vendor/gyp/test/hello/hello.gyp +15 -0
  345. data/vendor/gyp/test/hello/hello2.c +11 -0
  346. data/vendor/gyp/test/hello/hello2.gyp +15 -0
  347. data/vendor/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py +44 -0
  348. data/vendor/gyp/test/home_dot_gyp/gyptest-home-includes.py +30 -0
  349. data/vendor/gyp/test/home_dot_gyp/home/.gyp/include.gypi +5 -0
  350. data/vendor/gyp/test/home_dot_gyp/home2/.gyp/include.gypi +5 -0
  351. data/vendor/gyp/test/home_dot_gyp/src/all.gyp +22 -0
  352. data/vendor/gyp/test/home_dot_gyp/src/printfoo.c +7 -0
  353. data/vendor/gyp/test/include_dirs/gyptest-all.py +46 -0
  354. data/vendor/gyp/test/include_dirs/gyptest-default.py +46 -0
  355. data/vendor/gyp/test/include_dirs/src/inc.h +1 -0
  356. data/vendor/gyp/test/include_dirs/src/inc1/include1.h +1 -0
  357. data/vendor/gyp/test/include_dirs/src/includes.c +19 -0
  358. data/vendor/gyp/test/include_dirs/src/includes.gyp +27 -0
  359. data/vendor/gyp/test/include_dirs/src/shadow1/shadow.h +1 -0
  360. data/vendor/gyp/test/include_dirs/src/shadow2/shadow.h +1 -0
  361. data/vendor/gyp/test/include_dirs/src/subdir/inc.h +1 -0
  362. data/vendor/gyp/test/include_dirs/src/subdir/inc2/include2.h +1 -0
  363. data/vendor/gyp/test/include_dirs/src/subdir/subdir_includes.c +14 -0
  364. data/vendor/gyp/test/include_dirs/src/subdir/subdir_includes.gyp +20 -0
  365. data/vendor/gyp/test/intermediate_dir/gyptest-intermediate-dir.py +42 -0
  366. data/vendor/gyp/test/intermediate_dir/src/script.py +24 -0
  367. data/vendor/gyp/test/intermediate_dir/src/shared_infile.txt +1 -0
  368. data/vendor/gyp/test/intermediate_dir/src/test.gyp +42 -0
  369. data/vendor/gyp/test/intermediate_dir/src/test2.gyp +42 -0
  370. data/vendor/gyp/test/lib/README.txt +17 -0
  371. data/vendor/gyp/test/lib/TestCmd.py +1597 -0
  372. data/vendor/gyp/test/lib/TestCommon.py +570 -0
  373. data/vendor/gyp/test/lib/TestGyp.py +1049 -0
  374. data/vendor/gyp/test/library/gyptest-shared-obj-install-path.py +42 -0
  375. data/vendor/gyp/test/library/gyptest-shared.py +84 -0
  376. data/vendor/gyp/test/library/gyptest-static.py +84 -0
  377. data/vendor/gyp/test/library/src/lib1.c +10 -0
  378. data/vendor/gyp/test/library/src/lib1_moveable.c +10 -0
  379. data/vendor/gyp/test/library/src/lib2.c +10 -0
  380. data/vendor/gyp/test/library/src/lib2_moveable.c +10 -0
  381. data/vendor/gyp/test/library/src/library.gyp +58 -0
  382. data/vendor/gyp/test/library/src/program.c +15 -0
  383. data/vendor/gyp/test/library/src/shared_dependency.gyp +33 -0
  384. data/vendor/gyp/test/link-objects/base.c +6 -0
  385. data/vendor/gyp/test/link-objects/extra.c +5 -0
  386. data/vendor/gyp/test/link-objects/gyptest-all.py +28 -0
  387. data/vendor/gyp/test/link-objects/link-objects.gyp +24 -0
  388. data/vendor/gyp/test/mac/action-envvars/action/action.gyp +34 -0
  389. data/vendor/gyp/test/mac/action-envvars/action/action.sh +8 -0
  390. data/vendor/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings +3 -0
  391. data/vendor/gyp/test/mac/app-bundle/TestApp/English.lproj/MainMenu.xib +4119 -0
  392. data/vendor/gyp/test/mac/app-bundle/TestApp/TestApp-Info.plist +32 -0
  393. data/vendor/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.h +13 -0
  394. data/vendor/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.m +15 -0
  395. data/vendor/gyp/test/mac/app-bundle/TestApp/main.m +10 -0
  396. data/vendor/gyp/test/mac/app-bundle/empty.c +0 -0
  397. data/vendor/gyp/test/mac/app-bundle/test.gyp +39 -0
  398. data/vendor/gyp/test/mac/archs/my_file.cc +4 -0
  399. data/vendor/gyp/test/mac/archs/my_main_file.cc +9 -0
  400. data/vendor/gyp/test/mac/archs/test-archs-x86_64.gyp +27 -0
  401. data/vendor/gyp/test/mac/archs/test-no-archs.gyp +21 -0
  402. data/vendor/gyp/test/mac/cflags/ccfile.cc +7 -0
  403. data/vendor/gyp/test/mac/cflags/ccfile_withcflags.cc +7 -0
  404. data/vendor/gyp/test/mac/cflags/cfile.c +7 -0
  405. data/vendor/gyp/test/mac/cflags/cppfile.cpp +7 -0
  406. data/vendor/gyp/test/mac/cflags/cppfile_withcflags.cpp +7 -0
  407. data/vendor/gyp/test/mac/cflags/cxxfile.cxx +7 -0
  408. data/vendor/gyp/test/mac/cflags/cxxfile_withcflags.cxx +7 -0
  409. data/vendor/gyp/test/mac/cflags/mfile.m +7 -0
  410. data/vendor/gyp/test/mac/cflags/mmfile.mm +7 -0
  411. data/vendor/gyp/test/mac/cflags/mmfile_withcflags.mm +7 -0
  412. data/vendor/gyp/test/mac/cflags/test.gyp +119 -0
  413. data/vendor/gyp/test/mac/copy-dylib/empty.c +1 -0
  414. data/vendor/gyp/test/mac/copy-dylib/test.gyp +31 -0
  415. data/vendor/gyp/test/mac/debuginfo/file.c +6 -0
  416. data/vendor/gyp/test/mac/debuginfo/test.gyp +82 -0
  417. data/vendor/gyp/test/mac/depend-on-bundle/English.lproj/InfoPlist.strings +1 -0
  418. data/vendor/gyp/test/mac/depend-on-bundle/Info.plist +28 -0
  419. data/vendor/gyp/test/mac/depend-on-bundle/bundle.c +1 -0
  420. data/vendor/gyp/test/mac/depend-on-bundle/executable.c +4 -0
  421. data/vendor/gyp/test/mac/depend-on-bundle/test.gyp +28 -0
  422. data/vendor/gyp/test/mac/framework-dirs/calculate.c +15 -0
  423. data/vendor/gyp/test/mac/framework-dirs/framework-dirs.gyp +21 -0
  424. data/vendor/gyp/test/mac/framework-headers/myframework.h +8 -0
  425. data/vendor/gyp/test/mac/framework-headers/myframework.m +8 -0
  426. data/vendor/gyp/test/mac/framework-headers/test.gyp +44 -0
  427. data/vendor/gyp/test/mac/framework/TestFramework/English.lproj/InfoPlist.strings +2 -0
  428. data/vendor/gyp/test/mac/framework/TestFramework/Info.plist +28 -0
  429. data/vendor/gyp/test/mac/framework/TestFramework/ObjCVector.h +28 -0
  430. data/vendor/gyp/test/mac/framework/TestFramework/ObjCVector.mm +63 -0
  431. data/vendor/gyp/test/mac/framework/TestFramework/ObjCVectorInternal.h +9 -0
  432. data/vendor/gyp/test/mac/framework/TestFramework/TestFramework_Prefix.pch +7 -0
  433. data/vendor/gyp/test/mac/framework/empty.c +0 -0
  434. data/vendor/gyp/test/mac/framework/framework.gyp +74 -0
  435. data/vendor/gyp/test/mac/global-settings/src/dir1/dir1.gyp +11 -0
  436. data/vendor/gyp/test/mac/global-settings/src/dir2/dir2.gyp +22 -0
  437. data/vendor/gyp/test/mac/global-settings/src/dir2/file.txt +1 -0
  438. data/vendor/gyp/test/mac/gyptest-action-envvars.py +30 -0
  439. data/vendor/gyp/test/mac/gyptest-app.py +47 -0
  440. data/vendor/gyp/test/mac/gyptest-archs.py +37 -0
  441. data/vendor/gyp/test/mac/gyptest-cflags.py +21 -0
  442. data/vendor/gyp/test/mac/gyptest-copies.py +49 -0
  443. data/vendor/gyp/test/mac/gyptest-copy-dylib.py +25 -0
  444. data/vendor/gyp/test/mac/gyptest-debuginfo.py +36 -0
  445. data/vendor/gyp/test/mac/gyptest-depend-on-bundle.py +40 -0
  446. data/vendor/gyp/test/mac/gyptest-framework-dirs.py +23 -0
  447. data/vendor/gyp/test/mac/gyptest-framework-headers.py +38 -0
  448. data/vendor/gyp/test/mac/gyptest-framework.py +50 -0
  449. data/vendor/gyp/test/mac/gyptest-global-settings.py +26 -0
  450. data/vendor/gyp/test/mac/gyptest-infoplist-process.py +51 -0
  451. data/vendor/gyp/test/mac/gyptest-installname.py +79 -0
  452. data/vendor/gyp/test/mac/gyptest-ldflags-passed-to-libtool.py +31 -0
  453. data/vendor/gyp/test/mac/gyptest-ldflags.py +68 -0
  454. data/vendor/gyp/test/mac/gyptest-libraries.py +22 -0
  455. data/vendor/gyp/test/mac/gyptest-loadable-module.py +45 -0
  456. data/vendor/gyp/test/mac/gyptest-missing-cfbundlesignature.py +29 -0
  457. data/vendor/gyp/test/mac/gyptest-non-strs-flattened-to-env.py +33 -0
  458. data/vendor/gyp/test/mac/gyptest-objc-gc.py +45 -0
  459. data/vendor/gyp/test/mac/gyptest-postbuild-copy-bundle.py +62 -0
  460. data/vendor/gyp/test/mac/gyptest-postbuild-defaults.py +29 -0
  461. data/vendor/gyp/test/mac/gyptest-postbuild-fail.py +55 -0
  462. data/vendor/gyp/test/mac/gyptest-postbuild-multiple-configurations.py +26 -0
  463. data/vendor/gyp/test/mac/gyptest-postbuild-static-library.gyp +28 -0
  464. data/vendor/gyp/test/mac/gyptest-postbuild.py +53 -0
  465. data/vendor/gyp/test/mac/gyptest-prefixheader.py +19 -0
  466. data/vendor/gyp/test/mac/gyptest-rebuild.py +41 -0
  467. data/vendor/gyp/test/mac/gyptest-rpath.py +49 -0
  468. data/vendor/gyp/test/mac/gyptest-sdkroot.py +20 -0
  469. data/vendor/gyp/test/mac/gyptest-sourceless-module.gyp +46 -0
  470. data/vendor/gyp/test/mac/gyptest-strip.py +53 -0
  471. data/vendor/gyp/test/mac/gyptest-type-envvars.py +24 -0
  472. data/vendor/gyp/test/mac/gyptest-xcode-env-order.py +83 -0
  473. data/vendor/gyp/test/mac/gyptest-xcode-gcc.py +39 -0
  474. data/vendor/gyp/test/mac/infoplist-process/Info.plist +36 -0
  475. data/vendor/gyp/test/mac/infoplist-process/main.c +7 -0
  476. data/vendor/gyp/test/mac/infoplist-process/test1.gyp +25 -0
  477. data/vendor/gyp/test/mac/infoplist-process/test2.gyp +25 -0
  478. data/vendor/gyp/test/mac/infoplist-process/test3.gyp +25 -0
  479. data/vendor/gyp/test/mac/installname/Info.plist +28 -0
  480. data/vendor/gyp/test/mac/installname/file.c +1 -0
  481. data/vendor/gyp/test/mac/installname/main.c +1 -0
  482. data/vendor/gyp/test/mac/installname/test.gyp +93 -0
  483. data/vendor/gyp/test/mac/ldflags-libtool/file.c +1 -0
  484. data/vendor/gyp/test/mac/ldflags-libtool/test.gyp +17 -0
  485. data/vendor/gyp/test/mac/ldflags/subdirectory/Info.plist +8 -0
  486. data/vendor/gyp/test/mac/ldflags/subdirectory/file.c +2 -0
  487. data/vendor/gyp/test/mac/ldflags/subdirectory/symbol_list.def +1 -0
  488. data/vendor/gyp/test/mac/ldflags/subdirectory/test.gyp +66 -0
  489. data/vendor/gyp/test/mac/libraries/subdir/README.txt +1 -0
  490. data/vendor/gyp/test/mac/libraries/subdir/hello.cc +10 -0
  491. data/vendor/gyp/test/mac/libraries/subdir/mylib.c +7 -0
  492. data/vendor/gyp/test/mac/libraries/subdir/test.gyp +66 -0
  493. data/vendor/gyp/test/mac/loadable-module/Info.plist +26 -0
  494. data/vendor/gyp/test/mac/loadable-module/module.c +11 -0
  495. data/vendor/gyp/test/mac/loadable-module/test.gyp +18 -0
  496. data/vendor/gyp/test/mac/missing-cfbundlesignature/Info.plist +10 -0
  497. data/vendor/gyp/test/mac/missing-cfbundlesignature/Other-Info.plist +12 -0
  498. data/vendor/gyp/test/mac/missing-cfbundlesignature/Third-Info.plist +12 -0
  499. data/vendor/gyp/test/mac/missing-cfbundlesignature/file.c +1 -0
  500. data/vendor/gyp/test/mac/missing-cfbundlesignature/test.gyp +34 -0
  501. data/vendor/gyp/test/mac/non-strs-flattened-to-env/Info.plist +15 -0
  502. data/vendor/gyp/test/mac/non-strs-flattened-to-env/main.c +7 -0
  503. data/vendor/gyp/test/mac/non-strs-flattened-to-env/test.gyp +24 -0
  504. data/vendor/gyp/test/mac/objc-gc/c-file.c +1 -0
  505. data/vendor/gyp/test/mac/objc-gc/cc-file.cc +1 -0
  506. data/vendor/gyp/test/mac/objc-gc/main.m +6 -0
  507. data/vendor/gyp/test/mac/objc-gc/needs-gc-mm.mm +1 -0
  508. data/vendor/gyp/test/mac/objc-gc/needs-gc.m +1 -0
  509. data/vendor/gyp/test/mac/objc-gc/test.gyp +102 -0
  510. data/vendor/gyp/test/mac/postbuild-copy-bundle/Framework-Info.plist +30 -0
  511. data/vendor/gyp/test/mac/postbuild-copy-bundle/TestApp-Info.plist +32 -0
  512. data/vendor/gyp/test/mac/postbuild-copy-bundle/empty.c +0 -0
  513. data/vendor/gyp/test/mac/postbuild-copy-bundle/main.c +4 -0
  514. data/vendor/gyp/test/mac/postbuild-copy-bundle/postbuild-copy-framework.sh +9 -0
  515. data/vendor/gyp/test/mac/postbuild-copy-bundle/resource_file.sb +1 -0
  516. data/vendor/gyp/test/mac/postbuild-copy-bundle/test.gyp +43 -0
  517. data/vendor/gyp/test/mac/postbuild-defaults/Info.plist +13 -0
  518. data/vendor/gyp/test/mac/postbuild-defaults/main.c +7 -0
  519. data/vendor/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh +15 -0
  520. data/vendor/gyp/test/mac/postbuild-defaults/test.gyp +26 -0
  521. data/vendor/gyp/test/mac/postbuild-fail/file.c +6 -0
  522. data/vendor/gyp/test/mac/postbuild-fail/postbuild-fail.sh +6 -0
  523. data/vendor/gyp/test/mac/postbuild-fail/test.gyp +38 -0
  524. data/vendor/gyp/test/mac/postbuild-fail/touch-dynamic.sh +7 -0
  525. data/vendor/gyp/test/mac/postbuild-fail/touch-static.sh +7 -0
  526. data/vendor/gyp/test/mac/postbuild-multiple-configurations/main.c +4 -0
  527. data/vendor/gyp/test/mac/postbuild-multiple-configurations/postbuild-touch-file.sh +7 -0
  528. data/vendor/gyp/test/mac/postbuild-multiple-configurations/test.gyp +26 -0
  529. data/vendor/gyp/test/mac/postbuild-static-library/empty.c +4 -0
  530. data/vendor/gyp/test/mac/postbuild-static-library/postbuild-touch-file.sh +7 -0
  531. data/vendor/gyp/test/mac/postbuild-static-library/test.gyp +34 -0
  532. data/vendor/gyp/test/mac/postbuilds/copy.sh +3 -0
  533. data/vendor/gyp/test/mac/postbuilds/file.c +4 -0
  534. data/vendor/gyp/test/mac/postbuilds/file_g.c +4 -0
  535. data/vendor/gyp/test/mac/postbuilds/file_h.c +4 -0
  536. data/vendor/gyp/test/mac/postbuilds/script/shared_library_postbuild.sh +23 -0
  537. data/vendor/gyp/test/mac/postbuilds/script/static_library_postbuild.sh +23 -0
  538. data/vendor/gyp/test/mac/postbuilds/subdirectory/copied_file.txt +1 -0
  539. data/vendor/gyp/test/mac/postbuilds/subdirectory/nested_target.gyp +53 -0
  540. data/vendor/gyp/test/mac/postbuilds/test.gyp +87 -0
  541. data/vendor/gyp/test/mac/prefixheader/file.c +1 -0
  542. data/vendor/gyp/test/mac/prefixheader/file.cc +1 -0
  543. data/vendor/gyp/test/mac/prefixheader/file.m +1 -0
  544. data/vendor/gyp/test/mac/prefixheader/file.mm +1 -0
  545. data/vendor/gyp/test/mac/prefixheader/header.h +1 -0
  546. data/vendor/gyp/test/mac/prefixheader/test.gyp +82 -0
  547. data/vendor/gyp/test/mac/rebuild/TestApp-Info.plist +32 -0
  548. data/vendor/gyp/test/mac/rebuild/delay-touch.sh +6 -0
  549. data/vendor/gyp/test/mac/rebuild/empty.c +0 -0
  550. data/vendor/gyp/test/mac/rebuild/main.c +1 -0
  551. data/vendor/gyp/test/mac/rebuild/test.gyp +56 -0
  552. data/vendor/gyp/test/mac/rpath/file.c +1 -0
  553. data/vendor/gyp/test/mac/rpath/main.c +1 -0
  554. data/vendor/gyp/test/mac/rpath/test.gyp +48 -0
  555. data/vendor/gyp/test/mac/sdkroot/file.cc +5 -0
  556. data/vendor/gyp/test/mac/sdkroot/test.gyp +21 -0
  557. data/vendor/gyp/test/mac/sdkroot/test_shorthand.sh +8 -0
  558. data/vendor/gyp/test/mac/sourceless-module/empty.c +1 -0
  559. data/vendor/gyp/test/mac/sourceless-module/test.gyp +39 -0
  560. data/vendor/gyp/test/mac/strip/file.c +9 -0
  561. data/vendor/gyp/test/mac/strip/strip.saves +5 -0
  562. data/vendor/gyp/test/mac/strip/subdirectory/nested_file.c +1 -0
  563. data/vendor/gyp/test/mac/strip/subdirectory/nested_strip.saves +5 -0
  564. data/vendor/gyp/test/mac/strip/subdirectory/subdirectory.gyp +38 -0
  565. data/vendor/gyp/test/mac/strip/subdirectory/test_reading_save_file_from_postbuild.sh +5 -0
  566. data/vendor/gyp/test/mac/strip/test.gyp +119 -0
  567. data/vendor/gyp/test/mac/type_envvars/file.c +6 -0
  568. data/vendor/gyp/test/mac/type_envvars/test.gyp +100 -0
  569. data/vendor/gyp/test/mac/type_envvars/test_bundle_executable.sh +21 -0
  570. data/vendor/gyp/test/mac/type_envvars/test_bundle_loadable_module.sh +22 -0
  571. data/vendor/gyp/test/mac/type_envvars/test_bundle_shared_library.sh +23 -0
  572. data/vendor/gyp/test/mac/type_envvars/test_nonbundle_executable.sh +22 -0
  573. data/vendor/gyp/test/mac/type_envvars/test_nonbundle_loadable_module.sh +21 -0
  574. data/vendor/gyp/test/mac/type_envvars/test_nonbundle_none.sh +22 -0
  575. data/vendor/gyp/test/mac/type_envvars/test_nonbundle_shared_library.sh +21 -0
  576. data/vendor/gyp/test/mac/type_envvars/test_nonbundle_static_library.sh +21 -0
  577. data/vendor/gyp/test/mac/xcode-env-order/Info.plist +56 -0
  578. data/vendor/gyp/test/mac/xcode-env-order/file.ext1 +0 -0
  579. data/vendor/gyp/test/mac/xcode-env-order/file.ext2 +0 -0
  580. data/vendor/gyp/test/mac/xcode-env-order/file.ext3 +0 -0
  581. data/vendor/gyp/test/mac/xcode-env-order/main.c +7 -0
  582. data/vendor/gyp/test/mac/xcode-env-order/test.gyp +121 -0
  583. data/vendor/gyp/test/mac/xcode-gcc/test.gyp +60 -0
  584. data/vendor/gyp/test/mac/xcode-gcc/valid_c.c +8 -0
  585. data/vendor/gyp/test/mac/xcode-gcc/valid_cc.cc +8 -0
  586. data/vendor/gyp/test/mac/xcode-gcc/valid_m.m +8 -0
  587. data/vendor/gyp/test/mac/xcode-gcc/valid_mm.mm +8 -0
  588. data/vendor/gyp/test/mac/xcode-gcc/warn_about_invalid_offsetof_macro.cc +15 -0
  589. data/vendor/gyp/test/mac/xcode-gcc/warn_about_missing_newline.c +8 -0
  590. data/vendor/gyp/test/make/dependencies.gyp +15 -0
  591. data/vendor/gyp/test/make/gyptest-dependencies.py +26 -0
  592. data/vendor/gyp/test/make/gyptest-noload.py +57 -0
  593. data/vendor/gyp/test/make/main.cc +12 -0
  594. data/vendor/gyp/test/make/main.h +0 -0
  595. data/vendor/gyp/test/make/noload/all.gyp +18 -0
  596. data/vendor/gyp/test/make/noload/lib/shared.c +3 -0
  597. data/vendor/gyp/test/make/noload/lib/shared.gyp +16 -0
  598. data/vendor/gyp/test/make/noload/lib/shared.h +1 -0
  599. data/vendor/gyp/test/make/noload/main.c +9 -0
  600. data/vendor/gyp/test/many-actions/file0 +0 -0
  601. data/vendor/gyp/test/many-actions/file1 +0 -0
  602. data/vendor/gyp/test/many-actions/file2 +0 -0
  603. data/vendor/gyp/test/many-actions/file3 +0 -0
  604. data/vendor/gyp/test/many-actions/file4 +0 -0
  605. data/vendor/gyp/test/many-actions/gyptest-many-actions-unsorted.py +34 -0
  606. data/vendor/gyp/test/many-actions/gyptest-many-actions.py +20 -0
  607. data/vendor/gyp/test/many-actions/many-actions-unsorted.gyp +154 -0
  608. data/vendor/gyp/test/many-actions/many-actions.gyp +1817 -0
  609. data/vendor/gyp/test/module/gyptest-default.py +29 -0
  610. data/vendor/gyp/test/module/src/lib1.c +10 -0
  611. data/vendor/gyp/test/module/src/lib2.c +10 -0
  612. data/vendor/gyp/test/module/src/module.gyp +55 -0
  613. data/vendor/gyp/test/module/src/program.c +111 -0
  614. data/vendor/gyp/test/msvs/config_attrs/gyptest-config_attrs.py +31 -0
  615. data/vendor/gyp/test/msvs/config_attrs/hello.c +11 -0
  616. data/vendor/gyp/test/msvs/config_attrs/hello.gyp +21 -0
  617. data/vendor/gyp/test/msvs/express/base/base.gyp +22 -0
  618. data/vendor/gyp/test/msvs/express/express.gyp +19 -0
  619. data/vendor/gyp/test/msvs/express/gyptest-express.py +29 -0
  620. data/vendor/gyp/test/msvs/list_excluded/gyptest-all.py +51 -0
  621. data/vendor/gyp/test/msvs/list_excluded/hello.cpp +10 -0
  622. data/vendor/gyp/test/msvs/list_excluded/hello_exclude.gyp +19 -0
  623. data/vendor/gyp/test/msvs/list_excluded/hello_mac.cpp +10 -0
  624. data/vendor/gyp/test/msvs/missing_sources/gyptest-missing.py +41 -0
  625. data/vendor/gyp/test/msvs/missing_sources/hello_missing.gyp +15 -0
  626. data/vendor/gyp/test/msvs/props/AppName.props +14 -0
  627. data/vendor/gyp/test/msvs/props/AppName.vsprops +11 -0
  628. data/vendor/gyp/test/msvs/props/gyptest-props.py +22 -0
  629. data/vendor/gyp/test/msvs/props/hello.c +11 -0
  630. data/vendor/gyp/test/msvs/props/hello.gyp +22 -0
  631. data/vendor/gyp/test/msvs/shared_output/common.gypi +17 -0
  632. data/vendor/gyp/test/msvs/shared_output/gyptest-shared_output.py +41 -0
  633. data/vendor/gyp/test/msvs/shared_output/hello.c +12 -0
  634. data/vendor/gyp/test/msvs/shared_output/hello.gyp +21 -0
  635. data/vendor/gyp/test/msvs/shared_output/there/there.c +12 -0
  636. data/vendor/gyp/test/msvs/shared_output/there/there.gyp +16 -0
  637. data/vendor/gyp/test/msvs/uldi2010/gyptest-all.py +20 -0
  638. data/vendor/gyp/test/msvs/uldi2010/hello.c +13 -0
  639. data/vendor/gyp/test/msvs/uldi2010/hello.gyp +26 -0
  640. data/vendor/gyp/test/msvs/uldi2010/hello2.c +10 -0
  641. data/vendor/gyp/test/multiple-targets/gyptest-all.py +35 -0
  642. data/vendor/gyp/test/multiple-targets/gyptest-default.py +35 -0
  643. data/vendor/gyp/test/multiple-targets/src/common.c +7 -0
  644. data/vendor/gyp/test/multiple-targets/src/multiple.gyp +24 -0
  645. data/vendor/gyp/test/multiple-targets/src/prog1.c +10 -0
  646. data/vendor/gyp/test/multiple-targets/src/prog2.c +10 -0
  647. data/vendor/gyp/test/ninja/action_dependencies/gyptest-action-dependencies.py +53 -0
  648. data/vendor/gyp/test/ninja/action_dependencies/src/a.c +10 -0
  649. data/vendor/gyp/test/ninja/action_dependencies/src/a.h +13 -0
  650. data/vendor/gyp/test/ninja/action_dependencies/src/action_dependencies.gyp +88 -0
  651. data/vendor/gyp/test/ninja/action_dependencies/src/b.c +18 -0
  652. data/vendor/gyp/test/ninja/action_dependencies/src/b.h +13 -0
  653. data/vendor/gyp/test/ninja/action_dependencies/src/c.c +10 -0
  654. data/vendor/gyp/test/ninja/action_dependencies/src/c.h +13 -0
  655. data/vendor/gyp/test/ninja/action_dependencies/src/emit.py +11 -0
  656. data/vendor/gyp/test/ninja/chained-dependency/chained-dependency.gyp +53 -0
  657. data/vendor/gyp/test/ninja/chained-dependency/chained.c +5 -0
  658. data/vendor/gyp/test/ninja/chained-dependency/gyptest-chained-dependency.py +26 -0
  659. data/vendor/gyp/test/ninja/normalize-paths-win/gyptest-normalize-paths.py +42 -0
  660. data/vendor/gyp/test/ninja/normalize-paths-win/hello.cc +7 -0
  661. data/vendor/gyp/test/ninja/normalize-paths-win/normalize-paths.gyp +56 -0
  662. data/vendor/gyp/test/ninja/solibs_avoid_relinking/gyptest-solibs-avoid-relinking.py +41 -0
  663. data/vendor/gyp/test/ninja/solibs_avoid_relinking/main.cc +5 -0
  664. data/vendor/gyp/test/ninja/solibs_avoid_relinking/solib.cc +8 -0
  665. data/vendor/gyp/test/ninja/solibs_avoid_relinking/solibs_avoid_relinking.gyp +38 -0
  666. data/vendor/gyp/test/no-output/gyptest-no-output.py +21 -0
  667. data/vendor/gyp/test/no-output/src/nooutput.gyp +17 -0
  668. data/vendor/gyp/test/product/gyptest-product.py +44 -0
  669. data/vendor/gyp/test/product/hello.c +15 -0
  670. data/vendor/gyp/test/product/product.gyp +128 -0
  671. data/vendor/gyp/test/relative/foo/a/a.cc +9 -0
  672. data/vendor/gyp/test/relative/foo/a/a.gyp +13 -0
  673. data/vendor/gyp/test/relative/foo/a/c/c.cc +9 -0
  674. data/vendor/gyp/test/relative/foo/a/c/c.gyp +12 -0
  675. data/vendor/gyp/test/relative/foo/b/b.cc +9 -0
  676. data/vendor/gyp/test/relative/foo/b/b.gyp +9 -0
  677. data/vendor/gyp/test/relative/gyptest-default.py +25 -0
  678. data/vendor/gyp/test/rename/filecase/file.c +1 -0
  679. data/vendor/gyp/test/rename/filecase/test-casesensitive.gyp +15 -0
  680. data/vendor/gyp/test/rename/filecase/test.gyp +14 -0
  681. data/vendor/gyp/test/rename/gyptest-filecase.py +35 -0
  682. data/vendor/gyp/test/restat/gyptest-restat.py +31 -0
  683. data/vendor/gyp/test/restat/src/create_intermediate.py +17 -0
  684. data/vendor/gyp/test/restat/src/restat.gyp +50 -0
  685. data/vendor/gyp/test/restat/src/touch.py +16 -0
  686. data/vendor/gyp/test/rules-dirname/gyptest-dirname.py +38 -0
  687. data/vendor/gyp/test/rules-dirname/src/actions.gyp +15 -0
  688. data/vendor/gyp/test/rules-dirname/src/copy-file.py +11 -0
  689. data/vendor/gyp/test/rules-dirname/src/subdir/a/b/c.gencc +11 -0
  690. data/vendor/gyp/test/rules-dirname/src/subdir/a/b/c.printvars +1 -0
  691. data/vendor/gyp/test/rules-dirname/src/subdir/foo/bar/baz.gencc +11 -0
  692. data/vendor/gyp/test/rules-dirname/src/subdir/foo/bar/baz.printvars +1 -0
  693. data/vendor/gyp/test/rules-dirname/src/subdir/input-rule-dirname.gyp +92 -0
  694. data/vendor/gyp/test/rules-dirname/src/subdir/main.cc +12 -0
  695. data/vendor/gyp/test/rules-dirname/src/subdir/printvars.py +14 -0
  696. data/vendor/gyp/test/rules-rebuild/gyptest-all.py +70 -0
  697. data/vendor/gyp/test/rules-rebuild/gyptest-default.py +91 -0
  698. data/vendor/gyp/test/rules-rebuild/src/main.c +12 -0
  699. data/vendor/gyp/test/rules-rebuild/src/make-sources.py +19 -0
  700. data/vendor/gyp/test/rules-rebuild/src/prog1.in +7 -0
  701. data/vendor/gyp/test/rules-rebuild/src/prog2.in +7 -0
  702. data/vendor/gyp/test/rules-rebuild/src/same_target.gyp +31 -0
  703. data/vendor/gyp/test/rules-variables/gyptest-rules-variables.py +26 -0
  704. data/vendor/gyp/test/rules-variables/src/input_ext.c +9 -0
  705. data/vendor/gyp/test/rules-variables/src/input_name/test.c +9 -0
  706. data/vendor/gyp/test/rules-variables/src/input_path/subdir/test.c +9 -0
  707. data/vendor/gyp/test/rules-variables/src/subdir/input_dirname.c +9 -0
  708. data/vendor/gyp/test/rules-variables/src/subdir/test.c +18 -0
  709. data/vendor/gyp/test/rules-variables/src/test.input_root.c +9 -0
  710. data/vendor/gyp/test/rules-variables/src/variables.gyp +40 -0
  711. data/vendor/gyp/test/rules/gyptest-all.py +69 -0
  712. data/vendor/gyp/test/rules/gyptest-default.py +55 -0
  713. data/vendor/gyp/test/rules/gyptest-input-root.py +26 -0
  714. data/vendor/gyp/test/rules/gyptest-special-variables.py +18 -0
  715. data/vendor/gyp/test/rules/src/actions.gyp +22 -0
  716. data/vendor/gyp/test/rules/src/an_asm.S +6 -0
  717. data/vendor/gyp/test/rules/src/as.bat +7 -0
  718. data/vendor/gyp/test/rules/src/copy-file.py +11 -0
  719. data/vendor/gyp/test/rules/src/external/external.gyp +66 -0
  720. data/vendor/gyp/test/rules/src/external/file1.in +1 -0
  721. data/vendor/gyp/test/rules/src/external/file2.in +1 -0
  722. data/vendor/gyp/test/rules/src/input-root.gyp +24 -0
  723. data/vendor/gyp/test/rules/src/noaction/file1.in +1 -0
  724. data/vendor/gyp/test/rules/src/noaction/no_action_with_rules_fails.gyp +37 -0
  725. data/vendor/gyp/test/rules/src/rule.py +17 -0
  726. data/vendor/gyp/test/rules/src/somefile.ext +0 -0
  727. data/vendor/gyp/test/rules/src/special-variables.gyp +35 -0
  728. data/vendor/gyp/test/rules/src/subdir1/executable.gyp +37 -0
  729. data/vendor/gyp/test/rules/src/subdir1/function1.in +6 -0
  730. data/vendor/gyp/test/rules/src/subdir1/function2.in +6 -0
  731. data/vendor/gyp/test/rules/src/subdir1/program.c +12 -0
  732. data/vendor/gyp/test/rules/src/subdir2/file1.in +1 -0
  733. data/vendor/gyp/test/rules/src/subdir2/file2.in +1 -0
  734. data/vendor/gyp/test/rules/src/subdir2/never_used.gyp +31 -0
  735. data/vendor/gyp/test/rules/src/subdir2/no_action.gyp +38 -0
  736. data/vendor/gyp/test/rules/src/subdir2/no_inputs.gyp +32 -0
  737. data/vendor/gyp/test/rules/src/subdir2/none.gyp +33 -0
  738. data/vendor/gyp/test/rules/src/subdir3/executable2.gyp +37 -0
  739. data/vendor/gyp/test/rules/src/subdir3/function3.in +6 -0
  740. data/vendor/gyp/test/rules/src/subdir3/program.c +10 -0
  741. data/vendor/gyp/test/rules/src/subdir4/asm-function.asm +10 -0
  742. data/vendor/gyp/test/rules/src/subdir4/build-asm.gyp +49 -0
  743. data/vendor/gyp/test/rules/src/subdir4/program.c +19 -0
  744. data/vendor/gyp/test/same-gyp-name/gyptest-all.py +34 -0
  745. data/vendor/gyp/test/same-gyp-name/gyptest-default.py +34 -0
  746. data/vendor/gyp/test/same-gyp-name/src/all.gyp +16 -0
  747. data/vendor/gyp/test/same-gyp-name/src/subdir1/executable.gyp +15 -0
  748. data/vendor/gyp/test/same-gyp-name/src/subdir1/main1.cc +6 -0
  749. data/vendor/gyp/test/same-gyp-name/src/subdir2/executable.gyp +15 -0
  750. data/vendor/gyp/test/same-gyp-name/src/subdir2/main2.cc +6 -0
  751. data/vendor/gyp/test/same-rule-output-file-name/gyptest-all.py +23 -0
  752. data/vendor/gyp/test/same-rule-output-file-name/src/subdir1/subdir1.gyp +30 -0
  753. data/vendor/gyp/test/same-rule-output-file-name/src/subdir2/subdir2.gyp +30 -0
  754. data/vendor/gyp/test/same-rule-output-file-name/src/subdirs.gyp +16 -0
  755. data/vendor/gyp/test/same-rule-output-file-name/src/touch.py +11 -0
  756. data/vendor/gyp/test/same-source-file-name/gyptest-all.py +34 -0
  757. data/vendor/gyp/test/same-source-file-name/gyptest-default.py +34 -0
  758. data/vendor/gyp/test/same-source-file-name/gyptest-fail.py +0 -0
  759. data/vendor/gyp/test/same-source-file-name/src/all.gyp +30 -0
  760. data/vendor/gyp/test/same-source-file-name/src/double.gyp +0 -0
  761. data/vendor/gyp/test/same-source-file-name/src/func.c +6 -0
  762. data/vendor/gyp/test/same-source-file-name/src/prog1.c +16 -0
  763. data/vendor/gyp/test/same-source-file-name/src/prog2.c +16 -0
  764. data/vendor/gyp/test/same-source-file-name/src/subdir1/func.c +6 -0
  765. data/vendor/gyp/test/same-source-file-name/src/subdir2/func.c +6 -0
  766. data/vendor/gyp/test/same-target-name-different-directory/gyptest-all.py +36 -0
  767. data/vendor/gyp/test/same-target-name-different-directory/src/subdir1/subdir1.gyp +66 -0
  768. data/vendor/gyp/test/same-target-name-different-directory/src/subdir2/subdir2.gyp +66 -0
  769. data/vendor/gyp/test/same-target-name-different-directory/src/subdirs.gyp +16 -0
  770. data/vendor/gyp/test/same-target-name-different-directory/src/touch.py +11 -0
  771. data/vendor/gyp/test/same-target-name/gyptest-same-target-name.py +18 -0
  772. data/vendor/gyp/test/same-target-name/src/all.gyp +16 -0
  773. data/vendor/gyp/test/same-target-name/src/executable1.gyp +15 -0
  774. data/vendor/gyp/test/same-target-name/src/executable2.gyp +15 -0
  775. data/vendor/gyp/test/sanitize-rule-names/blah.S +0 -0
  776. data/vendor/gyp/test/sanitize-rule-names/gyptest-sanitize-rule-names.py +17 -0
  777. data/vendor/gyp/test/sanitize-rule-names/hello.cc +7 -0
  778. data/vendor/gyp/test/sanitize-rule-names/sanitize-rule-names.gyp +27 -0
  779. data/vendor/gyp/test/sanitize-rule-names/script.py +10 -0
  780. data/vendor/gyp/test/scons_tools/gyptest-tools.py +26 -0
  781. data/vendor/gyp/test/scons_tools/site_scons/site_tools/this_tool.py +10 -0
  782. data/vendor/gyp/test/scons_tools/tools.c +13 -0
  783. data/vendor/gyp/test/scons_tools/tools.gyp +18 -0
  784. data/vendor/gyp/test/sibling/gyptest-all.py +39 -0
  785. data/vendor/gyp/test/sibling/gyptest-relocate.py +41 -0
  786. data/vendor/gyp/test/sibling/src/build/all.gyp +17 -0
  787. data/vendor/gyp/test/sibling/src/prog1/prog1.c +7 -0
  788. data/vendor/gyp/test/sibling/src/prog1/prog1.gyp +15 -0
  789. data/vendor/gyp/test/sibling/src/prog2/prog2.c +7 -0
  790. data/vendor/gyp/test/sibling/src/prog2/prog2.gyp +15 -0
  791. data/vendor/gyp/test/small/gyptest-small.py +53 -0
  792. data/vendor/gyp/test/standalone/gyptest-standalone.py +33 -0
  793. data/vendor/gyp/test/standalone/standalone.gyp +12 -0
  794. data/vendor/gyp/test/subdirectory/gyptest-SYMROOT-all.py +36 -0
  795. data/vendor/gyp/test/subdirectory/gyptest-SYMROOT-default.py +37 -0
  796. data/vendor/gyp/test/subdirectory/gyptest-subdir-all.py +33 -0
  797. data/vendor/gyp/test/subdirectory/gyptest-subdir-default.py +33 -0
  798. data/vendor/gyp/test/subdirectory/gyptest-subdir2-deep.py +25 -0
  799. data/vendor/gyp/test/subdirectory/gyptest-top-all.py +43 -0
  800. data/vendor/gyp/test/subdirectory/gyptest-top-default.py +43 -0
  801. data/vendor/gyp/test/subdirectory/src/prog1.c +7 -0
  802. data/vendor/gyp/test/subdirectory/src/prog1.gyp +21 -0
  803. data/vendor/gyp/test/subdirectory/src/subdir/prog2.c +7 -0
  804. data/vendor/gyp/test/subdirectory/src/subdir/prog2.gyp +18 -0
  805. data/vendor/gyp/test/subdirectory/src/subdir/subdir2/prog3.c +7 -0
  806. data/vendor/gyp/test/subdirectory/src/subdir/subdir2/prog3.gyp +18 -0
  807. data/vendor/gyp/test/subdirectory/src/symroot.gypi +16 -0
  808. data/vendor/gyp/test/toolsets/gyptest-toolsets.py +23 -0
  809. data/vendor/gyp/test/toolsets/main.cc +11 -0
  810. data/vendor/gyp/test/toolsets/toolsets.cc +11 -0
  811. data/vendor/gyp/test/toolsets/toolsets.gyp +49 -0
  812. data/vendor/gyp/test/toplevel-dir/gyptest-toplevel-dir.py +31 -0
  813. data/vendor/gyp/test/toplevel-dir/src/sub1/main.gyp +18 -0
  814. data/vendor/gyp/test/toplevel-dir/src/sub1/prog1.c +7 -0
  815. data/vendor/gyp/test/toplevel-dir/src/sub2/prog2.c +7 -0
  816. data/vendor/gyp/test/toplevel-dir/src/sub2/prog2.gyp +15 -0
  817. data/vendor/gyp/test/variables/commands/commands-repeated.gyp +128 -0
  818. data/vendor/gyp/test/variables/commands/commands-repeated.gyp.stdout +136 -0
  819. data/vendor/gyp/test/variables/commands/commands-repeated.gypd.golden +72 -0
  820. data/vendor/gyp/test/variables/commands/commands.gyp +86 -0
  821. data/vendor/gyp/test/variables/commands/commands.gyp.ignore-env.stdout +86 -0
  822. data/vendor/gyp/test/variables/commands/commands.gyp.stdout +86 -0
  823. data/vendor/gyp/test/variables/commands/commands.gypd.golden +56 -0
  824. data/vendor/gyp/test/variables/commands/commands.gypi +16 -0
  825. data/vendor/gyp/test/variables/commands/gyptest-commands-ignore-env.py +46 -0
  826. data/vendor/gyp/test/variables/commands/gyptest-commands-repeated.py +38 -0
  827. data/vendor/gyp/test/variables/commands/gyptest-commands.py +39 -0
  828. data/vendor/gyp/test/variables/commands/test.py +1 -0
  829. data/vendor/gyp/test/variables/commands/update_golden +11 -0
  830. data/vendor/gyp/test/variables/filelist/filelist.gyp.stdout +26 -0
  831. data/vendor/gyp/test/variables/filelist/filelist.gypd.golden +43 -0
  832. data/vendor/gyp/test/variables/filelist/gyptest-filelist.py +50 -0
  833. data/vendor/gyp/test/variables/filelist/src/filelist.gyp +93 -0
  834. data/vendor/gyp/test/variables/filelist/update_golden +8 -0
  835. data/vendor/gyp/test/variables/latelate/gyptest-latelate.py +25 -0
  836. data/vendor/gyp/test/variables/latelate/src/latelate.gyp +34 -0
  837. data/vendor/gyp/test/variables/latelate/src/program.cc +13 -0
  838. data/vendor/gyp/test/variables/variable-in-path/C1/hello.cc +7 -0
  839. data/vendor/gyp/test/variables/variable-in-path/gyptest-variable-in-path.py +23 -0
  840. data/vendor/gyp/test/variables/variable-in-path/variable-in-path.gyp +31 -0
  841. data/vendor/gyp/test/variants/gyptest-variants.py +45 -0
  842. data/vendor/gyp/test/variants/src/variants.c +13 -0
  843. data/vendor/gyp/test/variants/src/variants.gyp +27 -0
  844. data/vendor/gyp/test/win/asm-files/asm-files.gyp +17 -0
  845. data/vendor/gyp/test/win/asm-files/b.s +0 -0
  846. data/vendor/gyp/test/win/asm-files/c.S +0 -0
  847. data/vendor/gyp/test/win/asm-files/hello.cc +7 -0
  848. data/vendor/gyp/test/win/batch-file-action/batch-file-action.gyp +21 -0
  849. data/vendor/gyp/test/win/batch-file-action/infile +1 -0
  850. data/vendor/gyp/test/win/batch-file-action/somecmd.bat +5 -0
  851. data/vendor/gyp/test/win/command-quote/a.S +0 -0
  852. data/vendor/gyp/test/win/command-quote/bat with spaces.bat +7 -0
  853. data/vendor/gyp/test/win/command-quote/command-quote.gyp +84 -0
  854. data/vendor/gyp/test/win/command-quote/go.bat +7 -0
  855. data/vendor/gyp/test/win/command-quote/subdir/and/another/in-subdir.gyp +28 -0
  856. data/vendor/gyp/test/win/compiler-flags/additional-include-dirs.cc +10 -0
  857. data/vendor/gyp/test/win/compiler-flags/additional-include-dirs.gyp +20 -0
  858. data/vendor/gyp/test/win/compiler-flags/additional-options.cc +10 -0
  859. data/vendor/gyp/test/win/compiler-flags/additional-options.gyp +31 -0
  860. data/vendor/gyp/test/win/compiler-flags/buffer-security-check.gyp +51 -0
  861. data/vendor/gyp/test/win/compiler-flags/buffer-security.cc +12 -0
  862. data/vendor/gyp/test/win/compiler-flags/character-set-mbcs.cc +11 -0
  863. data/vendor/gyp/test/win/compiler-flags/character-set-unicode.cc +15 -0
  864. data/vendor/gyp/test/win/compiler-flags/character-set.gyp +35 -0
  865. data/vendor/gyp/test/win/compiler-flags/debug-format.gyp +48 -0
  866. data/vendor/gyp/test/win/compiler-flags/exception-handling-on.cc +24 -0
  867. data/vendor/gyp/test/win/compiler-flags/exception-handling.gyp +46 -0
  868. data/vendor/gyp/test/win/compiler-flags/function-level-linking.cc +11 -0
  869. data/vendor/gyp/test/win/compiler-flags/function-level-linking.gyp +28 -0
  870. data/vendor/gyp/test/win/compiler-flags/hello.cc +7 -0
  871. data/vendor/gyp/test/win/compiler-flags/optimizations.gyp +147 -0
  872. data/vendor/gyp/test/win/compiler-flags/pdbname.cc +7 -0
  873. data/vendor/gyp/test/win/compiler-flags/pdbname.gyp +24 -0
  874. data/vendor/gyp/test/win/compiler-flags/rtti-on.cc +11 -0
  875. data/vendor/gyp/test/win/compiler-flags/rtti.gyp +37 -0
  876. data/vendor/gyp/test/win/compiler-flags/runtime-checks.cc +11 -0
  877. data/vendor/gyp/test/win/compiler-flags/runtime-checks.gyp +29 -0
  878. data/vendor/gyp/test/win/compiler-flags/runtime-library-md.cc +19 -0
  879. data/vendor/gyp/test/win/compiler-flags/runtime-library-mdd.cc +19 -0
  880. data/vendor/gyp/test/win/compiler-flags/runtime-library-mt.cc +19 -0
  881. data/vendor/gyp/test/win/compiler-flags/runtime-library-mtd.cc +19 -0
  882. data/vendor/gyp/test/win/compiler-flags/runtime-library.gyp +48 -0
  883. data/vendor/gyp/test/win/compiler-flags/subdir/header.h +0 -0
  884. data/vendor/gyp/test/win/compiler-flags/warning-as-error.cc +9 -0
  885. data/vendor/gyp/test/win/compiler-flags/warning-as-error.gyp +37 -0
  886. data/vendor/gyp/test/win/compiler-flags/warning-level.gyp +115 -0
  887. data/vendor/gyp/test/win/compiler-flags/warning-level1.cc +8 -0
  888. data/vendor/gyp/test/win/compiler-flags/warning-level2.cc +14 -0
  889. data/vendor/gyp/test/win/compiler-flags/warning-level3.cc +11 -0
  890. data/vendor/gyp/test/win/compiler-flags/warning-level4.cc +10 -0
  891. data/vendor/gyp/test/win/gyptest-asm-files.py +26 -0
  892. data/vendor/gyp/test/win/gyptest-cl-additional-include-dirs.py +22 -0
  893. data/vendor/gyp/test/win/gyptest-cl-additional-options.py +28 -0
  894. data/vendor/gyp/test/win/gyptest-cl-buffer-security-check.py +53 -0
  895. data/vendor/gyp/test/win/gyptest-cl-character-set.py +22 -0
  896. data/vendor/gyp/test/win/gyptest-cl-debug-format.py +43 -0
  897. data/vendor/gyp/test/win/gyptest-cl-exception-handling.py +33 -0
  898. data/vendor/gyp/test/win/gyptest-cl-function-level-linking.py +52 -0
  899. data/vendor/gyp/test/win/gyptest-cl-optimizations.py +79 -0
  900. data/vendor/gyp/test/win/gyptest-cl-pdbname.py +26 -0
  901. data/vendor/gyp/test/win/gyptest-cl-rtti.py +30 -0
  902. data/vendor/gyp/test/win/gyptest-cl-runtime-checks.py +30 -0
  903. data/vendor/gyp/test/win/gyptest-cl-runtime-library.py +22 -0
  904. data/vendor/gyp/test/win/gyptest-cl-warning-as-error.py +30 -0
  905. data/vendor/gyp/test/win/gyptest-cl-warning-level.py +41 -0
  906. data/vendor/gyp/test/win/gyptest-command-quote.py +37 -0
  907. data/vendor/gyp/test/win/gyptest-link-additional-deps.py +22 -0
  908. data/vendor/gyp/test/win/gyptest-link-additional-options.py +22 -0
  909. data/vendor/gyp/test/win/gyptest-link-aslr.py +35 -0
  910. data/vendor/gyp/test/win/gyptest-link-debug-info.py +26 -0
  911. data/vendor/gyp/test/win/gyptest-link-default-libs.py +22 -0
  912. data/vendor/gyp/test/win/gyptest-link-deffile.py +43 -0
  913. data/vendor/gyp/test/win/gyptest-link-delay-load-dlls.py +35 -0
  914. data/vendor/gyp/test/win/gyptest-link-entrypointsymbol.py +24 -0
  915. data/vendor/gyp/test/win/gyptest-link-fixed-base.py +40 -0
  916. data/vendor/gyp/test/win/gyptest-link-generate-manifest.py +44 -0
  917. data/vendor/gyp/test/win/gyptest-link-incremental.py +37 -0
  918. data/vendor/gyp/test/win/gyptest-link-library-adjust.py +21 -0
  919. data/vendor/gyp/test/win/gyptest-link-library-directories.py +35 -0
  920. data/vendor/gyp/test/win/gyptest-link-nodefaultlib.py +24 -0
  921. data/vendor/gyp/test/win/gyptest-link-nxcompat.py +37 -0
  922. data/vendor/gyp/test/win/gyptest-link-opt-icf.py +41 -0
  923. data/vendor/gyp/test/win/gyptest-link-opt-ref.py +40 -0
  924. data/vendor/gyp/test/win/gyptest-link-outputfile.py +28 -0
  925. data/vendor/gyp/test/win/gyptest-link-restat-importlib.py +39 -0
  926. data/vendor/gyp/test/win/gyptest-link-subsystem.py +28 -0
  927. data/vendor/gyp/test/win/gyptest-link-uldi.py +28 -0
  928. data/vendor/gyp/test/win/gyptest-long-command-line.py +23 -0
  929. data/vendor/gyp/test/win/gyptest-macro-projectname.py +24 -0
  930. data/vendor/gyp/test/win/gyptest-macro-vcinstalldir.py +24 -0
  931. data/vendor/gyp/test/win/gyptest-macros-containing-gyp.py +21 -0
  932. data/vendor/gyp/test/win/gyptest-macros-in-inputs-and-outputs.py +27 -0
  933. data/vendor/gyp/test/win/gyptest-midl-rules.py +22 -0
  934. data/vendor/gyp/test/win/gyptest-quoting-commands.py +25 -0
  935. data/vendor/gyp/test/win/gyptest-rc-build.py +24 -0
  936. data/vendor/gyp/test/win/idl-rules/basic-idl.gyp +30 -0
  937. data/vendor/gyp/test/win/idl-rules/history_indexer.idl +17 -0
  938. data/vendor/gyp/test/win/idl-rules/history_indexer_user.cc +15 -0
  939. data/vendor/gyp/test/win/importlib/has-exports.cc +10 -0
  940. data/vendor/gyp/test/win/importlib/hello.cc +9 -0
  941. data/vendor/gyp/test/win/importlib/importlib.gyp +30 -0
  942. data/vendor/gyp/test/win/linker-flags/additional-deps.cc +10 -0
  943. data/vendor/gyp/test/win/linker-flags/additional-deps.gyp +30 -0
  944. data/vendor/gyp/test/win/linker-flags/additional-options.gyp +29 -0
  945. data/vendor/gyp/test/win/linker-flags/aslr.gyp +35 -0
  946. data/vendor/gyp/test/win/linker-flags/debug-info.gyp +28 -0
  947. data/vendor/gyp/test/win/linker-flags/default-libs.cc +30 -0
  948. data/vendor/gyp/test/win/linker-flags/default-libs.gyp +13 -0
  949. data/vendor/gyp/test/win/linker-flags/deffile-multiple.gyp +17 -0
  950. data/vendor/gyp/test/win/linker-flags/deffile.cc +10 -0
  951. data/vendor/gyp/test/win/linker-flags/deffile.def +8 -0
  952. data/vendor/gyp/test/win/linker-flags/deffile.gyp +38 -0
  953. data/vendor/gyp/test/win/linker-flags/delay-load-dlls.gyp +27 -0
  954. data/vendor/gyp/test/win/linker-flags/delay-load.cc +10 -0
  955. data/vendor/gyp/test/win/linker-flags/entrypointsymbol.cc +13 -0
  956. data/vendor/gyp/test/win/linker-flags/entrypointsymbol.gyp +28 -0
  957. data/vendor/gyp/test/win/linker-flags/extra.manifest +11 -0
  958. data/vendor/gyp/test/win/linker-flags/extra2.manifest +11 -0
  959. data/vendor/gyp/test/win/linker-flags/fixed-base.gyp +52 -0
  960. data/vendor/gyp/test/win/linker-flags/generate-manifest.gyp +64 -0
  961. data/vendor/gyp/test/win/linker-flags/hello.cc +7 -0
  962. data/vendor/gyp/test/win/linker-flags/incremental.gyp +65 -0
  963. data/vendor/gyp/test/win/linker-flags/library-adjust.cc +10 -0
  964. data/vendor/gyp/test/win/linker-flags/library-adjust.gyp +16 -0
  965. data/vendor/gyp/test/win/linker-flags/library-directories-define.cc +7 -0
  966. data/vendor/gyp/test/win/linker-flags/library-directories-reference.cc +10 -0
  967. data/vendor/gyp/test/win/linker-flags/library-directories.gyp +42 -0
  968. data/vendor/gyp/test/win/linker-flags/nodefaultlib.cc +13 -0
  969. data/vendor/gyp/test/win/linker-flags/nodefaultlib.gyp +30 -0
  970. data/vendor/gyp/test/win/linker-flags/nxcompat.gyp +35 -0
  971. data/vendor/gyp/test/win/linker-flags/opt-icf.cc +29 -0
  972. data/vendor/gyp/test/win/linker-flags/opt-icf.gyp +63 -0
  973. data/vendor/gyp/test/win/linker-flags/opt-ref.cc +11 -0
  974. data/vendor/gyp/test/win/linker-flags/opt-ref.gyp +56 -0
  975. data/vendor/gyp/test/win/linker-flags/outputfile.gyp +58 -0
  976. data/vendor/gyp/test/win/linker-flags/subdir/library.gyp +13 -0
  977. data/vendor/gyp/test/win/linker-flags/subsystem-windows.cc +9 -0
  978. data/vendor/gyp/test/win/linker-flags/subsystem.gyp +48 -0
  979. data/vendor/gyp/test/win/long-command-line/function.cc +7 -0
  980. data/vendor/gyp/test/win/long-command-line/hello.cc +7 -0
  981. data/vendor/gyp/test/win/long-command-line/long-command-line.gyp +54 -0
  982. data/vendor/gyp/test/win/precompiled/gyptest-all.py +21 -0
  983. data/vendor/gyp/test/win/precompiled/hello.c +14 -0
  984. data/vendor/gyp/test/win/precompiled/hello.gyp +28 -0
  985. data/vendor/gyp/test/win/precompiled/hello2.c +13 -0
  986. data/vendor/gyp/test/win/precompiled/precomp.c +8 -0
  987. data/vendor/gyp/test/win/rc-build/Resource.h +26 -0
  988. data/vendor/gyp/test/win/rc-build/hello.cpp +30 -0
  989. data/vendor/gyp/test/win/rc-build/hello.gyp +58 -0
  990. data/vendor/gyp/test/win/rc-build/hello.h +3 -0
  991. data/vendor/gyp/test/win/rc-build/hello.ico +0 -0
  992. data/vendor/gyp/test/win/rc-build/hello.rc +86 -0
  993. data/vendor/gyp/test/win/rc-build/small.ico +0 -0
  994. data/vendor/gyp/test/win/rc-build/subdir/hello2.rc +87 -0
  995. data/vendor/gyp/test/win/rc-build/subdir/include.h +1 -0
  996. data/vendor/gyp/test/win/rc-build/targetver.h +24 -0
  997. data/vendor/gyp/test/win/uldi/a.cc +7 -0
  998. data/vendor/gyp/test/win/uldi/b.cc +7 -0
  999. data/vendor/gyp/test/win/uldi/main.cc +10 -0
  1000. data/vendor/gyp/test/win/uldi/uldi.gyp +45 -0
  1001. data/vendor/gyp/test/win/vs-macros/as.py +18 -0
  1002. data/vendor/gyp/test/win/vs-macros/containing-gyp.gyp +40 -0
  1003. data/vendor/gyp/test/win/vs-macros/do_stuff.py +8 -0
  1004. data/vendor/gyp/test/win/vs-macros/hello.cc +7 -0
  1005. data/vendor/gyp/test/win/vs-macros/input-output-macros.gyp +33 -0
  1006. data/vendor/gyp/test/win/vs-macros/input.S +0 -0
  1007. data/vendor/gyp/test/win/vs-macros/projectname.gyp +29 -0
  1008. data/vendor/gyp/test/win/vs-macros/stuff.blah +1 -0
  1009. data/vendor/gyp/test/win/vs-macros/test_exists.py +10 -0
  1010. data/vendor/gyp/test/win/vs-macros/vcinstalldir.gyp +41 -0
  1011. data/vendor/gyp/tools/README +15 -0
  1012. data/vendor/gyp/tools/Xcode/README +5 -0
  1013. data/vendor/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
  1014. data/vendor/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
  1015. data/vendor/gyp/tools/emacs/README +12 -0
  1016. data/vendor/gyp/tools/emacs/gyp-tests.el +54 -0
  1017. data/vendor/gyp/tools/emacs/gyp.el +251 -0
  1018. data/vendor/gyp/tools/emacs/run-unit-tests.sh +7 -0
  1019. data/vendor/gyp/tools/emacs/testdata/media.gyp +1105 -0
  1020. data/vendor/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
  1021. data/vendor/gyp/tools/graphviz.py +100 -0
  1022. data/vendor/gyp/tools/pretty_gyp.py +155 -0
  1023. data/vendor/gyp/tools/pretty_sln.py +168 -0
  1024. data/vendor/gyp/tools/pretty_vcproj.py +329 -0
  1025. metadata +1015 -1007
@@ -0,0 +1,12 @@
1
+ How to install gyp-mode for emacs:
2
+
3
+ Add the following to your ~/.emacs (replace ... with the path to your gyp
4
+ checkout).
5
+
6
+ (setq load-path (cons ".../tools/emacs" load-path))
7
+ (require 'gyp)
8
+
9
+ Restart emacs (or eval-region the added lines) and you should be all set.
10
+
11
+ Please note that ert is required for running the tests, which is included in
12
+ Emacs 24, or available separately from https://github.com/ohler/ert
@@ -0,0 +1,54 @@
1
+ ;;; gyp-tests.el - unit tests for gyp-mode.
2
+
3
+ ;; Copyright (c) 2012 Google Inc. All rights reserved.
4
+ ;; Use of this source code is governed by a BSD-style license that can be
5
+ ;; found in the LICENSE file.
6
+
7
+ ;; The recommended way to run these tests is to run them from the command-line,
8
+ ;; with the run-unit-tests.sh script.
9
+
10
+ (require 'cl)
11
+ (require 'ert)
12
+ (require 'gyp)
13
+
14
+ (defconst samples (directory-files "testdata" t ".gyp$")
15
+ "List of golden samples to check")
16
+
17
+ (defun fontify (filename)
18
+ (with-temp-buffer
19
+ (insert-file-contents-literally filename)
20
+ (gyp-mode)
21
+ (font-lock-fontify-buffer)
22
+ (buffer-string)))
23
+
24
+ (defun read-golden-sample (filename)
25
+ (with-temp-buffer
26
+ (insert-file-contents-literally (concat filename ".fontified"))
27
+ (read (current-buffer))))
28
+
29
+ (defun text-face-properties (s)
30
+ "Extract the text properties from s"
31
+ (let ((result (list t)))
32
+ (dotimes (i (length s))
33
+ (setq result (cons (get-text-property i 'face s) result)))
34
+ (nreverse result)))
35
+
36
+ (ert-deftest test-golden-samples ()
37
+ "Check that fontification produces the same results as the golden samples"
38
+ (dolist (sample samples)
39
+ (let ((golden (read-golden-sample sample))
40
+ (fontified (fontify sample)))
41
+ (should (equal golden fontified))
42
+ (should (equal (text-face-properties golden)
43
+ (text-face-properties fontified))))))
44
+
45
+ (defun create-golden-sample (filename)
46
+ "Create a golden sample by fontifying filename and writing out the printable
47
+ representation of the fontified buffer (with text properties) to the
48
+ FILENAME.fontified"
49
+ (with-temp-file (concat filename ".fontified")
50
+ (print (fontify filename) (current-buffer))))
51
+
52
+ (defun create-golden-samples ()
53
+ "Recreate the golden samples"
54
+ (dolist (sample samples) (create-golden-sample sample)))
@@ -0,0 +1,251 @@
1
+ ;;; gyp.el - font-lock-mode support for gyp files.
2
+
3
+ ;; Copyright (c) 2012 Google Inc. All rights reserved.
4
+ ;; Use of this source code is governed by a BSD-style license that can be
5
+ ;; found in the LICENSE file.
6
+
7
+ ;; Put this somewhere in your load-path and
8
+ ;; (require 'gyp)
9
+
10
+ (require 'python)
11
+ (require 'cl)
12
+
13
+ (when (string-match "python-mode.el" (symbol-file 'python-mode 'defun))
14
+ (error (concat "python-mode must be loaded from python.el (bundled with "
15
+ "recent emacsen), not from the older and less maintained "
16
+ "python-mode.el")))
17
+
18
+ (defadvice python-calculate-indentation (after ami-outdent-closing-parens
19
+ activate)
20
+ "De-indent closing parens, braces, and brackets in gyp-mode."
21
+ (if (and (eq major-mode 'gyp-mode)
22
+ (string-match "^ *[])}][],)}]* *$"
23
+ (buffer-substring-no-properties
24
+ (line-beginning-position) (line-end-position))))
25
+ (setq ad-return-value (- ad-return-value 2))))
26
+
27
+ (define-derived-mode gyp-mode python-mode "Gyp"
28
+ "Major mode for editing .gyp files. See http://code.google.com/p/gyp/"
29
+ ;; gyp-parse-history is a stack of (POSITION . PARSE-STATE) tuples,
30
+ ;; with greater positions at the top of the stack. PARSE-STATE
31
+ ;; is a list of section symbols (see gyp-section-name and gyp-parse-to)
32
+ ;; with most nested section symbol at the front of the list.
33
+ (set (make-local-variable 'gyp-parse-history) '((1 . (list))))
34
+ (gyp-add-font-lock-keywords))
35
+
36
+ (defun gyp-set-indentation ()
37
+ "Hook function to configure python indentation to suit gyp mode."
38
+ (setq python-continuation-offset 2
39
+ python-indent 2
40
+ python-guess-indent nil))
41
+
42
+ (add-hook 'gyp-mode-hook 'gyp-set-indentation)
43
+
44
+ (add-to-list 'auto-mode-alist '("\\.gyp\\'" . gyp-mode))
45
+ (add-to-list 'auto-mode-alist '("\\.gypi\\'" . gyp-mode))
46
+
47
+ ;;; Font-lock support
48
+
49
+ (defconst gyp-dependencies-regexp
50
+ (regexp-opt (list "dependencies" "export_dependent_settings"))
51
+ "Regular expression to introduce 'dependencies' section")
52
+
53
+ (defconst gyp-sources-regexp
54
+ (regexp-opt (list "action" "files" "include_dirs" "includes" "inputs"
55
+ "libraries" "outputs" "sources"))
56
+ "Regular expression to introduce 'sources' sections")
57
+
58
+ (defconst gyp-conditions-regexp
59
+ (regexp-opt (list "conditions" "target_conditions"))
60
+ "Regular expression to introduce conditions sections")
61
+
62
+ (defconst gyp-variables-regexp
63
+ "^variables"
64
+ "Regular expression to introduce variables sections")
65
+
66
+ (defconst gyp-defines-regexp
67
+ "^defines"
68
+ "Regular expression to introduce 'defines' sections")
69
+
70
+ (defconst gyp-targets-regexp
71
+ "^targets"
72
+ "Regular expression to introduce 'targets' sections")
73
+
74
+ (defun gyp-section-name (section)
75
+ "Map the sections we are interested in from SECTION to symbol.
76
+
77
+ SECTION is a string from the buffer that introduces a section. The result is
78
+ a symbol representing the kind of section.
79
+
80
+ This allows us to treat (for the purposes of font-lock) several different
81
+ section names as the same kind of section. For example, a 'sources section
82
+ can be introduced by the 'sources', 'inputs', 'outputs' keyword.
83
+
84
+ 'other is the default section kind when a more specific match is not made."
85
+ (cond ((string-match-p gyp-dependencies-regexp section) 'dependencies)
86
+ ((string-match-p gyp-sources-regexp section) 'sources)
87
+ ((string-match-p gyp-variables-regexp section) 'variables)
88
+ ((string-match-p gyp-conditions-regexp section) 'conditions)
89
+ ((string-match-p gyp-targets-regexp section) 'targets)
90
+ ((string-match-p gyp-defines-regexp section) 'defines)
91
+ (t 'other)))
92
+
93
+ (defun gyp-invalidate-parse-states-after (target-point)
94
+ "Erase any parse information after target-point."
95
+ (while (> (caar gyp-parse-history) target-point)
96
+ (setq gyp-parse-history (cdr gyp-parse-history))))
97
+
98
+ (defun gyp-parse-point ()
99
+ "The point of the last parse state added by gyp-parse-to."
100
+ (caar gyp-parse-history))
101
+
102
+ (defun gyp-parse-sections ()
103
+ "A list of section symbols holding at the last parse state point."
104
+ (cdar gyp-parse-history))
105
+
106
+ (defun gyp-inside-dictionary-p ()
107
+ "Predicate returning true if the parser is inside a dictionary."
108
+ (not (eq (cadar gyp-parse-history) 'list)))
109
+
110
+ (defun gyp-add-parse-history (point sections)
111
+ "Add parse state SECTIONS to the parse history at POINT so that parsing can be
112
+ resumed instantly."
113
+ (while (>= (caar gyp-parse-history) point)
114
+ (setq gyp-parse-history (cdr gyp-parse-history)))
115
+ (setq gyp-parse-history (cons (cons point sections) gyp-parse-history)))
116
+
117
+ (defun gyp-parse-to (target-point)
118
+ "Parses from (point) to TARGET-POINT adding the parse state information to
119
+ gyp-parse-state-history. Parsing stops if TARGET-POINT is reached or if a
120
+ string literal has been parsed. Returns nil if no further parsing can be
121
+ done, otherwise returns the position of the start of a parsed string, leaving
122
+ the point at the end of the string."
123
+ (let ((parsing t)
124
+ string-start)
125
+ (while parsing
126
+ (setq string-start nil)
127
+ ;; Parse up to a character that starts a sexp, or if the nesting
128
+ ;; level decreases.
129
+ (let ((state (parse-partial-sexp (gyp-parse-point)
130
+ target-point
131
+ -1
132
+ t))
133
+ (sections (gyp-parse-sections)))
134
+ (if (= (nth 0 state) -1)
135
+ (setq sections (cdr sections)) ; pop out a level
136
+ (cond ((looking-at-p "['\"]") ; a string
137
+ (setq string-start (point))
138
+ (forward-sexp 1)
139
+ (if (gyp-inside-dictionary-p)
140
+ ;; Look for sections inside a dictionary
141
+ (let ((section (gyp-section-name
142
+ (buffer-substring-no-properties
143
+ (+ 1 string-start)
144
+ (- (point) 1)))))
145
+ (setq sections (cons section (cdr sections)))))
146
+ ;; Stop after the string so it can be fontified.
147
+ (setq target-point (point)))
148
+ ((looking-at-p "{")
149
+ ;; Inside a dictionary. Increase nesting.
150
+ (forward-char 1)
151
+ (setq sections (cons 'unknown sections)))
152
+ ((looking-at-p "\\[")
153
+ ;; Inside a list. Increase nesting
154
+ (forward-char 1)
155
+ (setq sections (cons 'list sections)))
156
+ ((not (eobp))
157
+ ;; other
158
+ (forward-char 1))))
159
+ (gyp-add-parse-history (point) sections)
160
+ (setq parsing (< (point) target-point))))
161
+ string-start))
162
+
163
+ (defun gyp-section-at-point ()
164
+ "Transform the last parse state, which is a list of nested sections and return
165
+ the section symbol that should be used to determine font-lock information for
166
+ the string. Can return nil indicating the string should not have any attached
167
+ section."
168
+ (let ((sections (gyp-parse-sections)))
169
+ (cond
170
+ ((eq (car sections) 'conditions)
171
+ ;; conditions can occur in a variables section, but we still want to
172
+ ;; highlight it as a keyword.
173
+ nil)
174
+ ((and (eq (car sections) 'list)
175
+ (eq (cadr sections) 'list))
176
+ ;; conditions and sources can have items in [[ ]]
177
+ (caddr sections))
178
+ (t (cadr sections)))))
179
+
180
+ (defun gyp-section-match (limit)
181
+ "Parse from (point) to LIMIT returning by means of match data what was
182
+ matched. The group of the match indicates what style font-lock should apply.
183
+ See also `gyp-add-font-lock-keywords'."
184
+ (gyp-invalidate-parse-states-after (point))
185
+ (let ((group nil)
186
+ (string-start t))
187
+ (while (and (< (point) limit)
188
+ (not group)
189
+ string-start)
190
+ (setq string-start (gyp-parse-to limit))
191
+ (if string-start
192
+ (setq group (case (gyp-section-at-point)
193
+ ('dependencies 1)
194
+ ('variables 2)
195
+ ('conditions 2)
196
+ ('sources 3)
197
+ ('defines 4)
198
+ (nil nil)))))
199
+ (if group
200
+ (progn
201
+ ;; Set the match data to indicate to the font-lock mechanism the
202
+ ;; highlighting to be performed.
203
+ (set-match-data (append (list string-start (point))
204
+ (make-list (* (1- group) 2) nil)
205
+ (list (1+ string-start) (1- (point)))))
206
+ t))))
207
+
208
+ ;;; Please see http://code.google.com/p/gyp/wiki/GypLanguageSpecification for
209
+ ;;; canonical list of keywords.
210
+ (defun gyp-add-font-lock-keywords ()
211
+ "Add gyp-mode keywords to font-lock mechanism."
212
+ ;; TODO(jknotten): Move all the keyword highlighting into gyp-section-match
213
+ ;; so that we can do the font-locking in a single font-lock pass.
214
+ (font-lock-add-keywords
215
+ nil
216
+ (list
217
+ ;; Top-level keywords
218
+ (list (concat "['\"]\\("
219
+ (regexp-opt (list "action" "action_name" "actions" "cflags"
220
+ "conditions" "configurations" "copies" "defines"
221
+ "dependencies" "destination"
222
+ "direct_dependent_settings"
223
+ "export_dependent_settings" "extension" "files"
224
+ "include_dirs" "includes" "inputs" "libraries"
225
+ "link_settings" "mac_bundle" "message"
226
+ "msvs_external_rule" "outputs" "product_name"
227
+ "process_outputs_as_sources" "rules" "rule_name"
228
+ "sources" "suppress_wildcard"
229
+ "target_conditions" "target_defaults"
230
+ "target_defines" "target_name" "toolsets"
231
+ "targets" "type" "variables" "xcode_settings"))
232
+ "[!/+=]?\\)") 1 'font-lock-keyword-face t)
233
+ ;; Type of target
234
+ (list (concat "['\"]\\("
235
+ (regexp-opt (list "loadable_module" "static_library"
236
+ "shared_library" "executable" "none"))
237
+ "\\)") 1 'font-lock-type-face t)
238
+ (list "\\(?:target\\|action\\)_name['\"]\\s-*:\\s-*['\"]\\([^ '\"]*\\)" 1
239
+ 'font-lock-function-name-face t)
240
+ (list 'gyp-section-match
241
+ (list 1 'font-lock-function-name-face t t) ; dependencies
242
+ (list 2 'font-lock-variable-name-face t t) ; variables, conditions
243
+ (list 3 'font-lock-constant-face t t) ; sources
244
+ (list 4 'font-lock-preprocessor-face t t)) ; preprocessor
245
+ ;; Variable expansion
246
+ (list "<@?(\\([^\n )]+\\))" 1 'font-lock-variable-name-face t)
247
+ ;; Command expansion
248
+ (list "<!@?(\\([^\n )]+\\))" 1 'font-lock-variable-name-face t)
249
+ )))
250
+
251
+ (provide 'gyp)
@@ -0,0 +1,7 @@
1
+ #!/bin/sh
2
+ # Copyright (c) 2012 Google Inc. All rights reserved.
3
+ # Use of this source code is governed by a BSD-style license that can be
4
+ # found in the LICENSE file.
5
+ emacs --no-site-file --no-init-file --batch \
6
+ --load ert.el --load gyp.el --load gyp-tests.el \
7
+ -f ert-run-tests-batch-and-exit
@@ -0,0 +1,1105 @@
1
+ # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+
5
+ {
6
+ 'variables': {
7
+ 'chromium_code': 1,
8
+ # Override to dynamically link the PulseAudio library.
9
+ 'use_pulseaudio%': 0,
10
+ # Override to dynamically link the cras (ChromeOS audio) library.
11
+ 'use_cras%': 0,
12
+ },
13
+ 'targets': [
14
+ {
15
+ 'target_name': 'media',
16
+ 'type': '<(component)',
17
+ 'dependencies': [
18
+ 'yuv_convert',
19
+ '../base/base.gyp:base',
20
+ '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
21
+ '../build/temp_gyp/googleurl.gyp:googleurl',
22
+ '../crypto/crypto.gyp:crypto',
23
+ '../third_party/openmax/openmax.gyp:il',
24
+ '../ui/ui.gyp:ui',
25
+ ],
26
+ 'defines': [
27
+ 'MEDIA_IMPLEMENTATION',
28
+ ],
29
+ 'include_dirs': [
30
+ '..',
31
+ ],
32
+ 'sources': [
33
+ 'audio/android/audio_manager_android.cc',
34
+ 'audio/android/audio_manager_android.h',
35
+ 'audio/android/audio_track_output_android.cc',
36
+ 'audio/android/audio_track_output_android.h',
37
+ 'audio/android/opensles_input.cc',
38
+ 'audio/android/opensles_input.h',
39
+ 'audio/android/opensles_output.cc',
40
+ 'audio/android/opensles_output.h',
41
+ 'audio/async_socket_io_handler.h',
42
+ 'audio/async_socket_io_handler_posix.cc',
43
+ 'audio/async_socket_io_handler_win.cc',
44
+ 'audio/audio_buffers_state.cc',
45
+ 'audio/audio_buffers_state.h',
46
+ 'audio/audio_io.h',
47
+ 'audio/audio_input_controller.cc',
48
+ 'audio/audio_input_controller.h',
49
+ 'audio/audio_input_stream_impl.cc',
50
+ 'audio/audio_input_stream_impl.h',
51
+ 'audio/audio_device_name.cc',
52
+ 'audio/audio_device_name.h',
53
+ 'audio/audio_manager.cc',
54
+ 'audio/audio_manager.h',
55
+ 'audio/audio_manager_base.cc',
56
+ 'audio/audio_manager_base.h',
57
+ 'audio/audio_output_controller.cc',
58
+ 'audio/audio_output_controller.h',
59
+ 'audio/audio_output_dispatcher.cc',
60
+ 'audio/audio_output_dispatcher.h',
61
+ 'audio/audio_output_dispatcher_impl.cc',
62
+ 'audio/audio_output_dispatcher_impl.h',
63
+ 'audio/audio_output_mixer.cc',
64
+ 'audio/audio_output_mixer.h',
65
+ 'audio/audio_output_proxy.cc',
66
+ 'audio/audio_output_proxy.h',
67
+ 'audio/audio_parameters.cc',
68
+ 'audio/audio_parameters.h',
69
+ 'audio/audio_util.cc',
70
+ 'audio/audio_util.h',
71
+ 'audio/cross_process_notification.cc',
72
+ 'audio/cross_process_notification.h',
73
+ 'audio/cross_process_notification_win.cc',
74
+ 'audio/cross_process_notification_posix.cc',
75
+ 'audio/fake_audio_input_stream.cc',
76
+ 'audio/fake_audio_input_stream.h',
77
+ 'audio/fake_audio_output_stream.cc',
78
+ 'audio/fake_audio_output_stream.h',
79
+ 'audio/linux/audio_manager_linux.cc',
80
+ 'audio/linux/audio_manager_linux.h',
81
+ 'audio/linux/alsa_input.cc',
82
+ 'audio/linux/alsa_input.h',
83
+ 'audio/linux/alsa_output.cc',
84
+ 'audio/linux/alsa_output.h',
85
+ 'audio/linux/alsa_util.cc',
86
+ 'audio/linux/alsa_util.h',
87
+ 'audio/linux/alsa_wrapper.cc',
88
+ 'audio/linux/alsa_wrapper.h',
89
+ 'audio/linux/cras_output.cc',
90
+ 'audio/linux/cras_output.h',
91
+ 'audio/openbsd/audio_manager_openbsd.cc',
92
+ 'audio/openbsd/audio_manager_openbsd.h',
93
+ 'audio/mac/audio_input_mac.cc',
94
+ 'audio/mac/audio_input_mac.h',
95
+ 'audio/mac/audio_low_latency_input_mac.cc',
96
+ 'audio/mac/audio_low_latency_input_mac.h',
97
+ 'audio/mac/audio_low_latency_output_mac.cc',
98
+ 'audio/mac/audio_low_latency_output_mac.h',
99
+ 'audio/mac/audio_manager_mac.cc',
100
+ 'audio/mac/audio_manager_mac.h',
101
+ 'audio/mac/audio_output_mac.cc',
102
+ 'audio/mac/audio_output_mac.h',
103
+ 'audio/null_audio_sink.cc',
104
+ 'audio/null_audio_sink.h',
105
+ 'audio/pulse/pulse_output.cc',
106
+ 'audio/pulse/pulse_output.h',
107
+ 'audio/sample_rates.cc',
108
+ 'audio/sample_rates.h',
109
+ 'audio/simple_sources.cc',
110
+ 'audio/simple_sources.h',
111
+ 'audio/win/audio_low_latency_input_win.cc',
112
+ 'audio/win/audio_low_latency_input_win.h',
113
+ 'audio/win/audio_low_latency_output_win.cc',
114
+ 'audio/win/audio_low_latency_output_win.h',
115
+ 'audio/win/audio_manager_win.cc',
116
+ 'audio/win/audio_manager_win.h',
117
+ 'audio/win/avrt_wrapper_win.cc',
118
+ 'audio/win/avrt_wrapper_win.h',
119
+ 'audio/win/device_enumeration_win.cc',
120
+ 'audio/win/device_enumeration_win.h',
121
+ 'audio/win/wavein_input_win.cc',
122
+ 'audio/win/wavein_input_win.h',
123
+ 'audio/win/waveout_output_win.cc',
124
+ 'audio/win/waveout_output_win.h',
125
+ 'base/android/media_jni_registrar.cc',
126
+ 'base/android/media_jni_registrar.h',
127
+ 'base/audio_decoder.cc',
128
+ 'base/audio_decoder.h',
129
+ 'base/audio_decoder_config.cc',
130
+ 'base/audio_decoder_config.h',
131
+ 'base/audio_renderer.h',
132
+ 'base/audio_renderer_mixer.cc',
133
+ 'base/audio_renderer_mixer.h',
134
+ 'base/audio_renderer_mixer_input.cc',
135
+ 'base/audio_renderer_mixer_input.h',
136
+ 'base/bitstream_buffer.h',
137
+ 'base/buffers.cc',
138
+ 'base/buffers.h',
139
+ 'base/byte_queue.cc',
140
+ 'base/byte_queue.h',
141
+ 'base/channel_layout.cc',
142
+ 'base/channel_layout.h',
143
+ 'base/clock.cc',
144
+ 'base/clock.h',
145
+ 'base/composite_filter.cc',
146
+ 'base/composite_filter.h',
147
+ 'base/data_buffer.cc',
148
+ 'base/data_buffer.h',
149
+ 'base/data_source.cc',
150
+ 'base/data_source.h',
151
+ 'base/decoder_buffer.cc',
152
+ 'base/decoder_buffer.h',
153
+ 'base/decrypt_config.cc',
154
+ 'base/decrypt_config.h',
155
+ 'base/decryptor.h',
156
+ 'base/decryptor_client.h',
157
+ 'base/demuxer.cc',
158
+ 'base/demuxer.h',
159
+ 'base/demuxer_stream.cc',
160
+ 'base/demuxer_stream.h',
161
+ 'base/djb2.cc',
162
+ 'base/djb2.h',
163
+ 'base/filter_collection.cc',
164
+ 'base/filter_collection.h',
165
+ 'base/filter_host.h',
166
+ 'base/filters.cc',
167
+ 'base/filters.h',
168
+ 'base/h264_bitstream_converter.cc',
169
+ 'base/h264_bitstream_converter.h',
170
+ 'base/media.h',
171
+ 'base/media_android.cc',
172
+ 'base/media_export.h',
173
+ 'base/media_log.cc',
174
+ 'base/media_log.h',
175
+ 'base/media_log_event.h',
176
+ 'base/media_posix.cc',
177
+ 'base/media_switches.cc',
178
+ 'base/media_switches.h',
179
+ 'base/media_win.cc',
180
+ 'base/message_loop_factory.cc',
181
+ 'base/message_loop_factory.h',
182
+ 'base/pipeline.cc',
183
+ 'base/pipeline.h',
184
+ 'base/pipeline_status.cc',
185
+ 'base/pipeline_status.h',
186
+ 'base/ranges.cc',
187
+ 'base/ranges.h',
188
+ 'base/seekable_buffer.cc',
189
+ 'base/seekable_buffer.h',
190
+ 'base/state_matrix.cc',
191
+ 'base/state_matrix.h',
192
+ 'base/stream_parser.cc',
193
+ 'base/stream_parser.h',
194
+ 'base/stream_parser_buffer.cc',
195
+ 'base/stream_parser_buffer.h',
196
+ 'base/video_decoder.cc',
197
+ 'base/video_decoder.h',
198
+ 'base/video_decoder_config.cc',
199
+ 'base/video_decoder_config.h',
200
+ 'base/video_frame.cc',
201
+ 'base/video_frame.h',
202
+ 'base/video_renderer.h',
203
+ 'base/video_util.cc',
204
+ 'base/video_util.h',
205
+ 'crypto/aes_decryptor.cc',
206
+ 'crypto/aes_decryptor.h',
207
+ 'ffmpeg/ffmpeg_common.cc',
208
+ 'ffmpeg/ffmpeg_common.h',
209
+ 'ffmpeg/file_protocol.cc',
210
+ 'ffmpeg/file_protocol.h',
211
+ 'filters/audio_file_reader.cc',
212
+ 'filters/audio_file_reader.h',
213
+ 'filters/audio_renderer_algorithm.cc',
214
+ 'filters/audio_renderer_algorithm.h',
215
+ 'filters/audio_renderer_impl.cc',
216
+ 'filters/audio_renderer_impl.h',
217
+ 'filters/bitstream_converter.cc',
218
+ 'filters/bitstream_converter.h',
219
+ 'filters/chunk_demuxer.cc',
220
+ 'filters/chunk_demuxer.h',
221
+ 'filters/chunk_demuxer_client.h',
222
+ 'filters/dummy_demuxer.cc',
223
+ 'filters/dummy_demuxer.h',
224
+ 'filters/ffmpeg_audio_decoder.cc',
225
+ 'filters/ffmpeg_audio_decoder.h',
226
+ 'filters/ffmpeg_demuxer.cc',
227
+ 'filters/ffmpeg_demuxer.h',
228
+ 'filters/ffmpeg_h264_bitstream_converter.cc',
229
+ 'filters/ffmpeg_h264_bitstream_converter.h',
230
+ 'filters/ffmpeg_glue.cc',
231
+ 'filters/ffmpeg_glue.h',
232
+ 'filters/ffmpeg_video_decoder.cc',
233
+ 'filters/ffmpeg_video_decoder.h',
234
+ 'filters/file_data_source.cc',
235
+ 'filters/file_data_source.h',
236
+ 'filters/gpu_video_decoder.cc',
237
+ 'filters/gpu_video_decoder.h',
238
+ 'filters/in_memory_url_protocol.cc',
239
+ 'filters/in_memory_url_protocol.h',
240
+ 'filters/source_buffer_stream.cc',
241
+ 'filters/source_buffer_stream.h',
242
+ 'filters/video_frame_generator.cc',
243
+ 'filters/video_frame_generator.h',
244
+ 'filters/video_renderer_base.cc',
245
+ 'filters/video_renderer_base.h',
246
+ 'video/capture/fake_video_capture_device.cc',
247
+ 'video/capture/fake_video_capture_device.h',
248
+ 'video/capture/linux/video_capture_device_linux.cc',
249
+ 'video/capture/linux/video_capture_device_linux.h',
250
+ 'video/capture/mac/video_capture_device_mac.h',
251
+ 'video/capture/mac/video_capture_device_mac.mm',
252
+ 'video/capture/mac/video_capture_device_qtkit_mac.h',
253
+ 'video/capture/mac/video_capture_device_qtkit_mac.mm',
254
+ 'video/capture/video_capture.h',
255
+ 'video/capture/video_capture_device.h',
256
+ 'video/capture/video_capture_device_dummy.cc',
257
+ 'video/capture/video_capture_device_dummy.h',
258
+ 'video/capture/video_capture_proxy.cc',
259
+ 'video/capture/video_capture_proxy.h',
260
+ 'video/capture/video_capture_types.h',
261
+ 'video/capture/win/filter_base_win.cc',
262
+ 'video/capture/win/filter_base_win.h',
263
+ 'video/capture/win/pin_base_win.cc',
264
+ 'video/capture/win/pin_base_win.h',
265
+ 'video/capture/win/sink_filter_observer_win.h',
266
+ 'video/capture/win/sink_filter_win.cc',
267
+ 'video/capture/win/sink_filter_win.h',
268
+ 'video/capture/win/sink_input_pin_win.cc',
269
+ 'video/capture/win/sink_input_pin_win.h',
270
+ 'video/capture/win/video_capture_device_win.cc',
271
+ 'video/capture/win/video_capture_device_win.h',
272
+ 'video/picture.cc',
273
+ 'video/picture.h',
274
+ 'video/video_decode_accelerator.cc',
275
+ 'video/video_decode_accelerator.h',
276
+ 'webm/webm_constants.h',
277
+ 'webm/webm_cluster_parser.cc',
278
+ 'webm/webm_cluster_parser.h',
279
+ 'webm/webm_content_encodings.cc',
280
+ 'webm/webm_content_encodings.h',
281
+ 'webm/webm_content_encodings_client.cc',
282
+ 'webm/webm_content_encodings_client.h',
283
+ 'webm/webm_info_parser.cc',
284
+ 'webm/webm_info_parser.h',
285
+ 'webm/webm_parser.cc',
286
+ 'webm/webm_parser.h',
287
+ 'webm/webm_stream_parser.cc',
288
+ 'webm/webm_stream_parser.h',
289
+ 'webm/webm_tracks_parser.cc',
290
+ 'webm/webm_tracks_parser.h',
291
+ ],
292
+ 'direct_dependent_settings': {
293
+ 'include_dirs': [
294
+ '..',
295
+ ],
296
+ },
297
+ 'conditions': [
298
+ # Android doesn't use ffmpeg, so make the dependency conditional
299
+ # and exclude the sources which depend on ffmpeg.
300
+ ['OS != "android"', {
301
+ 'dependencies': [
302
+ '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
303
+ ],
304
+ }],
305
+ ['OS == "android"', {
306
+ 'sources!': [
307
+ 'base/media_posix.cc',
308
+ 'ffmpeg/ffmpeg_common.cc',
309
+ 'ffmpeg/ffmpeg_common.h',
310
+ 'ffmpeg/file_protocol.cc',
311
+ 'ffmpeg/file_protocol.h',
312
+ 'filters/audio_file_reader.cc',
313
+ 'filters/audio_file_reader.h',
314
+ 'filters/bitstream_converter.cc',
315
+ 'filters/bitstream_converter.h',
316
+ 'filters/chunk_demuxer.cc',
317
+ 'filters/chunk_demuxer.h',
318
+ 'filters/chunk_demuxer_client.h',
319
+ 'filters/ffmpeg_audio_decoder.cc',
320
+ 'filters/ffmpeg_audio_decoder.h',
321
+ 'filters/ffmpeg_demuxer.cc',
322
+ 'filters/ffmpeg_demuxer.h',
323
+ 'filters/ffmpeg_h264_bitstream_converter.cc',
324
+ 'filters/ffmpeg_h264_bitstream_converter.h',
325
+ 'filters/ffmpeg_glue.cc',
326
+ 'filters/ffmpeg_glue.h',
327
+ 'filters/ffmpeg_video_decoder.cc',
328
+ 'filters/ffmpeg_video_decoder.h',
329
+ 'filters/gpu_video_decoder.cc',
330
+ 'filters/gpu_video_decoder.h',
331
+ 'webm/webm_cluster_parser.cc',
332
+ 'webm/webm_cluster_parser.h',
333
+ 'webm/webm_stream_parser.cc',
334
+ 'webm/webm_stream_parser.h',
335
+ ],
336
+ }],
337
+ # The below 'android' condition were added temporarily and should be
338
+ # removed in downstream, because there is no Java environment setup in
339
+ # upstream yet.
340
+ ['OS == "android"', {
341
+ 'sources!':[
342
+ 'audio/android/audio_track_output_android.cc',
343
+ ],
344
+ 'sources':[
345
+ 'audio/android/audio_track_output_stub_android.cc',
346
+ ],
347
+ 'link_settings': {
348
+ 'libraries': [
349
+ '-lOpenSLES',
350
+ ],
351
+ },
352
+ }],
353
+ ['OS=="linux" or OS=="freebsd" or OS=="solaris"', {
354
+ 'link_settings': {
355
+ 'libraries': [
356
+ '-lasound',
357
+ ],
358
+ },
359
+ }],
360
+ ['OS=="openbsd"', {
361
+ 'sources/': [ ['exclude', '/alsa_' ],
362
+ ['exclude', '/audio_manager_linux' ] ],
363
+ 'link_settings': {
364
+ 'libraries': [
365
+ ],
366
+ },
367
+ }],
368
+ ['OS!="openbsd"', {
369
+ 'sources!': [
370
+ 'audio/openbsd/audio_manager_openbsd.cc',
371
+ 'audio/openbsd/audio_manager_openbsd.h',
372
+ ],
373
+ }],
374
+ ['OS=="linux"', {
375
+ 'variables': {
376
+ 'conditions': [
377
+ ['sysroot!=""', {
378
+ 'pkg-config': '../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
379
+ }, {
380
+ 'pkg-config': 'pkg-config'
381
+ }],
382
+ ],
383
+ },
384
+ 'conditions': [
385
+ ['use_cras == 1', {
386
+ 'cflags': [
387
+ '<!@(<(pkg-config) --cflags libcras)',
388
+ ],
389
+ 'link_settings': {
390
+ 'libraries': [
391
+ '<!@(<(pkg-config) --libs libcras)',
392
+ ],
393
+ },
394
+ 'defines': [
395
+ 'USE_CRAS',
396
+ ],
397
+ }, { # else: use_cras == 0
398
+ 'sources!': [
399
+ 'audio/linux/cras_output.cc',
400
+ 'audio/linux/cras_output.h',
401
+ ],
402
+ }],
403
+ ],
404
+ }],
405
+ ['os_posix == 1', {
406
+ 'conditions': [
407
+ ['use_pulseaudio == 1', {
408
+ 'cflags': [
409
+ '<!@(pkg-config --cflags libpulse)',
410
+ ],
411
+ 'link_settings': {
412
+ 'libraries': [
413
+ '<!@(pkg-config --libs-only-l libpulse)',
414
+ ],
415
+ },
416
+ 'defines': [
417
+ 'USE_PULSEAUDIO',
418
+ ],
419
+ }, { # else: use_pulseaudio == 0
420
+ 'sources!': [
421
+ 'audio/pulse/pulse_output.cc',
422
+ 'audio/pulse/pulse_output.h',
423
+ ],
424
+ }],
425
+ ],
426
+ }],
427
+ ['os_posix == 1 and OS != "android"', {
428
+ # Video capture isn't supported in Android yet.
429
+ 'sources!': [
430
+ 'video/capture/video_capture_device_dummy.cc',
431
+ 'video/capture/video_capture_device_dummy.h',
432
+ ],
433
+ }],
434
+ ['OS=="mac"', {
435
+ 'link_settings': {
436
+ 'libraries': [
437
+ '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
438
+ '$(SDKROOT)/System/Library/Frameworks/AudioToolbox.framework',
439
+ '$(SDKROOT)/System/Library/Frameworks/CoreAudio.framework',
440
+ '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
441
+ '$(SDKROOT)/System/Library/Frameworks/QTKit.framework',
442
+ ],
443
+ },
444
+ }],
445
+ ['OS=="win"', {
446
+ 'sources!': [
447
+ 'audio/pulse/pulse_output.cc',
448
+ 'audio/pulse/pulse_output.h',
449
+ 'video/capture/video_capture_device_dummy.cc',
450
+ 'video/capture/video_capture_device_dummy.h',
451
+ ],
452
+ }],
453
+ ['proprietary_codecs==1 or branding=="Chrome"', {
454
+ 'sources': [
455
+ 'mp4/avc.cc',
456
+ 'mp4/avc.h',
457
+ 'mp4/box_definitions.cc',
458
+ 'mp4/box_definitions.h',
459
+ 'mp4/box_reader.cc',
460
+ 'mp4/box_reader.h',
461
+ 'mp4/cenc.cc',
462
+ 'mp4/cenc.h',
463
+ 'mp4/mp4_stream_parser.cc',
464
+ 'mp4/mp4_stream_parser.h',
465
+ 'mp4/offset_byte_queue.cc',
466
+ 'mp4/offset_byte_queue.h',
467
+ 'mp4/track_run_iterator.cc',
468
+ 'mp4/track_run_iterator.h',
469
+ ],
470
+ }],
471
+ ],
472
+ },
473
+ {
474
+ 'target_name': 'yuv_convert',
475
+ 'type': 'static_library',
476
+ 'include_dirs': [
477
+ '..',
478
+ ],
479
+ 'conditions': [
480
+ ['order_profiling != 0', {
481
+ 'target_conditions' : [
482
+ ['_toolset=="target"', {
483
+ 'cflags!': [ '-finstrument-functions' ],
484
+ }],
485
+ ],
486
+ }],
487
+ [ 'target_arch == "ia32" or target_arch == "x64"', {
488
+ 'dependencies': [
489
+ 'yuv_convert_simd_x86',
490
+ ],
491
+ }],
492
+ [ 'target_arch == "arm"', {
493
+ 'dependencies': [
494
+ 'yuv_convert_simd_arm',
495
+ ],
496
+ }],
497
+ ],
498
+ 'sources': [
499
+ 'base/yuv_convert.cc',
500
+ 'base/yuv_convert.h',
501
+ ],
502
+ },
503
+ {
504
+ 'target_name': 'yuv_convert_simd_x86',
505
+ 'type': 'static_library',
506
+ 'include_dirs': [
507
+ '..',
508
+ ],
509
+ 'sources': [
510
+ 'base/simd/convert_rgb_to_yuv_c.cc',
511
+ 'base/simd/convert_rgb_to_yuv_sse2.cc',
512
+ 'base/simd/convert_rgb_to_yuv_ssse3.asm',
513
+ 'base/simd/convert_rgb_to_yuv_ssse3.cc',
514
+ 'base/simd/convert_rgb_to_yuv_ssse3.inc',
515
+ 'base/simd/convert_yuv_to_rgb_c.cc',
516
+ 'base/simd/convert_yuv_to_rgb_x86.cc',
517
+ 'base/simd/convert_yuv_to_rgb_mmx.asm',
518
+ 'base/simd/convert_yuv_to_rgb_mmx.inc',
519
+ 'base/simd/convert_yuv_to_rgb_sse.asm',
520
+ 'base/simd/filter_yuv.h',
521
+ 'base/simd/filter_yuv_c.cc',
522
+ 'base/simd/filter_yuv_mmx.cc',
523
+ 'base/simd/filter_yuv_sse2.cc',
524
+ 'base/simd/linear_scale_yuv_to_rgb_mmx.asm',
525
+ 'base/simd/linear_scale_yuv_to_rgb_mmx.inc',
526
+ 'base/simd/linear_scale_yuv_to_rgb_sse.asm',
527
+ 'base/simd/scale_yuv_to_rgb_mmx.asm',
528
+ 'base/simd/scale_yuv_to_rgb_mmx.inc',
529
+ 'base/simd/scale_yuv_to_rgb_sse.asm',
530
+ 'base/simd/yuv_to_rgb_table.cc',
531
+ 'base/simd/yuv_to_rgb_table.h',
532
+ ],
533
+ 'conditions': [
534
+ ['order_profiling != 0', {
535
+ 'target_conditions' : [
536
+ ['_toolset=="target"', {
537
+ 'cflags!': [ '-finstrument-functions' ],
538
+ }],
539
+ ],
540
+ }],
541
+ [ 'target_arch == "x64"', {
542
+ # Source files optimized for X64 systems.
543
+ 'sources': [
544
+ 'base/simd/linear_scale_yuv_to_rgb_mmx_x64.asm',
545
+ 'base/simd/scale_yuv_to_rgb_sse2_x64.asm',
546
+ ],
547
+ }],
548
+ [ 'os_posix == 1 and OS != "mac" and OS != "android"', {
549
+ 'cflags': [
550
+ '-msse2',
551
+ ],
552
+ }],
553
+ [ 'OS == "mac"', {
554
+ 'configurations': {
555
+ 'Debug': {
556
+ 'xcode_settings': {
557
+ # gcc on the mac builds horribly unoptimized sse code in debug
558
+ # mode. Since this is rarely going to be debugged, run with full
559
+ # optimizations in Debug as well as Release.
560
+ 'GCC_OPTIMIZATION_LEVEL': '3', # -O3
561
+ },
562
+ },
563
+ },
564
+ }],
565
+ [ 'OS=="win"', {
566
+ 'variables': {
567
+ 'yasm_flags': [
568
+ '-DWIN32',
569
+ '-DMSVC',
570
+ '-DCHROMIUM',
571
+ '-Isimd',
572
+ ],
573
+ },
574
+ }],
575
+ [ 'OS=="mac"', {
576
+ 'variables': {
577
+ 'yasm_flags': [
578
+ '-DPREFIX',
579
+ '-DMACHO',
580
+ '-DCHROMIUM',
581
+ '-Isimd',
582
+ ],
583
+ },
584
+ }],
585
+ [ 'os_posix==1 and OS!="mac"', {
586
+ 'variables': {
587
+ 'conditions': [
588
+ [ 'target_arch=="ia32"', {
589
+ 'yasm_flags': [
590
+ '-DX86_32',
591
+ '-DELF',
592
+ '-DCHROMIUM',
593
+ '-Isimd',
594
+ ],
595
+ }, {
596
+ 'yasm_flags': [
597
+ '-DARCH_X86_64',
598
+ '-DELF',
599
+ '-DPIC',
600
+ '-DCHROMIUM',
601
+ '-Isimd',
602
+ ],
603
+ }],
604
+ ],
605
+ },
606
+ }],
607
+ ],
608
+ 'variables': {
609
+ 'yasm_output_path': '<(SHARED_INTERMEDIATE_DIR)/media',
610
+ },
611
+ 'msvs_2010_disable_uldi_when_referenced': 1,
612
+ 'includes': [
613
+ '../third_party/yasm/yasm_compile.gypi',
614
+ ],
615
+ },
616
+ {
617
+ 'target_name': 'yuv_convert_simd_arm',
618
+ 'type': 'static_library',
619
+ 'include_dirs': [
620
+ '..',
621
+ ],
622
+ 'sources': [
623
+ 'base/simd/convert_rgb_to_yuv_c.cc',
624
+ 'base/simd/convert_rgb_to_yuv.h',
625
+ 'base/simd/convert_yuv_to_rgb_c.cc',
626
+ 'base/simd/convert_yuv_to_rgb.h',
627
+ 'base/simd/filter_yuv.h',
628
+ 'base/simd/filter_yuv_c.cc',
629
+ 'base/simd/yuv_to_rgb_table.cc',
630
+ 'base/simd/yuv_to_rgb_table.h',
631
+ ],
632
+ },
633
+ {
634
+ 'target_name': 'media_unittests',
635
+ 'type': 'executable',
636
+ 'dependencies': [
637
+ 'media',
638
+ 'media_test_support',
639
+ 'yuv_convert',
640
+ '../base/base.gyp:base',
641
+ '../base/base.gyp:base_i18n',
642
+ '../base/base.gyp:test_support_base',
643
+ '../testing/gmock.gyp:gmock',
644
+ '../testing/gtest.gyp:gtest',
645
+ '../ui/ui.gyp:ui',
646
+ ],
647
+ 'sources': [
648
+ 'audio/async_socket_io_handler_unittest.cc',
649
+ 'audio/audio_input_controller_unittest.cc',
650
+ 'audio/audio_input_device_unittest.cc',
651
+ 'audio/audio_input_unittest.cc',
652
+ 'audio/audio_input_volume_unittest.cc',
653
+ 'audio/audio_low_latency_input_output_unittest.cc',
654
+ 'audio/audio_output_controller_unittest.cc',
655
+ 'audio/audio_output_proxy_unittest.cc',
656
+ 'audio/audio_parameters_unittest.cc',
657
+ 'audio/audio_util_unittest.cc',
658
+ 'audio/cross_process_notification_unittest.cc',
659
+ 'audio/linux/alsa_output_unittest.cc',
660
+ 'audio/mac/audio_low_latency_input_mac_unittest.cc',
661
+ 'audio/mac/audio_output_mac_unittest.cc',
662
+ 'audio/simple_sources_unittest.cc',
663
+ 'audio/win/audio_low_latency_input_win_unittest.cc',
664
+ 'audio/win/audio_low_latency_output_win_unittest.cc',
665
+ 'audio/win/audio_output_win_unittest.cc',
666
+ 'base/audio_renderer_mixer_unittest.cc',
667
+ 'base/audio_renderer_mixer_input_unittest.cc',
668
+ 'base/buffers_unittest.cc',
669
+ 'base/clock_unittest.cc',
670
+ 'base/composite_filter_unittest.cc',
671
+ 'base/data_buffer_unittest.cc',
672
+ 'base/decoder_buffer_unittest.cc',
673
+ 'base/djb2_unittest.cc',
674
+ 'base/fake_audio_render_callback.cc',
675
+ 'base/fake_audio_render_callback.h',
676
+ 'base/filter_collection_unittest.cc',
677
+ 'base/h264_bitstream_converter_unittest.cc',
678
+ 'base/pipeline_unittest.cc',
679
+ 'base/ranges_unittest.cc',
680
+ 'base/run_all_unittests.cc',
681
+ 'base/seekable_buffer_unittest.cc',
682
+ 'base/state_matrix_unittest.cc',
683
+ 'base/test_data_util.cc',
684
+ 'base/test_data_util.h',
685
+ 'base/video_frame_unittest.cc',
686
+ 'base/video_util_unittest.cc',
687
+ 'base/yuv_convert_unittest.cc',
688
+ 'crypto/aes_decryptor_unittest.cc',
689
+ 'ffmpeg/ffmpeg_common_unittest.cc',
690
+ 'filters/audio_renderer_algorithm_unittest.cc',
691
+ 'filters/audio_renderer_impl_unittest.cc',
692
+ 'filters/bitstream_converter_unittest.cc',
693
+ 'filters/chunk_demuxer_unittest.cc',
694
+ 'filters/ffmpeg_audio_decoder_unittest.cc',
695
+ 'filters/ffmpeg_decoder_unittest.h',
696
+ 'filters/ffmpeg_demuxer_unittest.cc',
697
+ 'filters/ffmpeg_glue_unittest.cc',
698
+ 'filters/ffmpeg_h264_bitstream_converter_unittest.cc',
699
+ 'filters/ffmpeg_video_decoder_unittest.cc',
700
+ 'filters/file_data_source_unittest.cc',
701
+ 'filters/pipeline_integration_test.cc',
702
+ 'filters/pipeline_integration_test_base.cc',
703
+ 'filters/source_buffer_stream_unittest.cc',
704
+ 'filters/video_renderer_base_unittest.cc',
705
+ 'video/capture/video_capture_device_unittest.cc',
706
+ 'webm/cluster_builder.cc',
707
+ 'webm/cluster_builder.h',
708
+ 'webm/webm_cluster_parser_unittest.cc',
709
+ 'webm/webm_content_encodings_client_unittest.cc',
710
+ 'webm/webm_parser_unittest.cc',
711
+ ],
712
+ 'conditions': [
713
+ ['os_posix==1 and OS!="mac"', {
714
+ 'conditions': [
715
+ ['linux_use_tcmalloc==1', {
716
+ 'dependencies': [
717
+ '../base/allocator/allocator.gyp:allocator',
718
+ ],
719
+ }],
720
+ ],
721
+ }],
722
+ ['OS != "android"', {
723
+ 'dependencies': [
724
+ '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
725
+ ],
726
+ }],
727
+ ['OS == "android"', {
728
+ 'sources!': [
729
+ 'audio/audio_input_volume_unittest.cc',
730
+ 'base/test_data_util.cc',
731
+ 'base/test_data_util.h',
732
+ 'ffmpeg/ffmpeg_common_unittest.cc',
733
+ 'filters/ffmpeg_audio_decoder_unittest.cc',
734
+ 'filters/bitstream_converter_unittest.cc',
735
+ 'filters/chunk_demuxer_unittest.cc',
736
+ 'filters/ffmpeg_demuxer_unittest.cc',
737
+ 'filters/ffmpeg_glue_unittest.cc',
738
+ 'filters/ffmpeg_h264_bitstream_converter_unittest.cc',
739
+ 'filters/ffmpeg_video_decoder_unittest.cc',
740
+ 'filters/pipeline_integration_test.cc',
741
+ 'filters/pipeline_integration_test_base.cc',
742
+ 'mp4/mp4_stream_parser_unittest.cc',
743
+ 'webm/webm_cluster_parser_unittest.cc',
744
+ ],
745
+ }],
746
+ ['OS == "linux"', {
747
+ 'conditions': [
748
+ ['use_cras == 1', {
749
+ 'sources': [
750
+ 'audio/linux/cras_output_unittest.cc',
751
+ ],
752
+ 'defines': [
753
+ 'USE_CRAS',
754
+ ],
755
+ }],
756
+ ],
757
+ }],
758
+ [ 'target_arch=="ia32" or target_arch=="x64"', {
759
+ 'sources': [
760
+ 'base/simd/convert_rgb_to_yuv_unittest.cc',
761
+ ],
762
+ }],
763
+ ['proprietary_codecs==1 or branding=="Chrome"', {
764
+ 'sources': [
765
+ 'mp4/avc_unittest.cc',
766
+ 'mp4/box_reader_unittest.cc',
767
+ 'mp4/mp4_stream_parser_unittest.cc',
768
+ 'mp4/offset_byte_queue_unittest.cc',
769
+ ],
770
+ }],
771
+ ],
772
+ },
773
+ {
774
+ 'target_name': 'media_test_support',
775
+ 'type': 'static_library',
776
+ 'dependencies': [
777
+ 'media',
778
+ '../base/base.gyp:base',
779
+ '../testing/gmock.gyp:gmock',
780
+ '../testing/gtest.gyp:gtest',
781
+ ],
782
+ 'sources': [
783
+ 'audio/test_audio_input_controller_factory.cc',
784
+ 'audio/test_audio_input_controller_factory.h',
785
+ 'base/mock_callback.cc',
786
+ 'base/mock_callback.h',
787
+ 'base/mock_data_source_host.cc',
788
+ 'base/mock_data_source_host.h',
789
+ 'base/mock_demuxer_host.cc',
790
+ 'base/mock_demuxer_host.h',
791
+ 'base/mock_filter_host.cc',
792
+ 'base/mock_filter_host.h',
793
+ 'base/mock_filters.cc',
794
+ 'base/mock_filters.h',
795
+ ],
796
+ },
797
+ {
798
+ 'target_name': 'scaler_bench',
799
+ 'type': 'executable',
800
+ 'dependencies': [
801
+ 'media',
802
+ 'yuv_convert',
803
+ '../base/base.gyp:base',
804
+ '../skia/skia.gyp:skia',
805
+ ],
806
+ 'sources': [
807
+ 'tools/scaler_bench/scaler_bench.cc',
808
+ ],
809
+ },
810
+ {
811
+ 'target_name': 'qt_faststart',
812
+ 'type': 'executable',
813
+ 'sources': [
814
+ 'tools/qt_faststart/qt_faststart.c'
815
+ ],
816
+ },
817
+ {
818
+ 'target_name': 'seek_tester',
819
+ 'type': 'executable',
820
+ 'dependencies': [
821
+ 'media',
822
+ '../base/base.gyp:base',
823
+ ],
824
+ 'sources': [
825
+ 'tools/seek_tester/seek_tester.cc',
826
+ ],
827
+ },
828
+ ],
829
+ 'conditions': [
830
+ ['OS=="win"', {
831
+ 'targets': [
832
+ {
833
+ 'target_name': 'player_wtl',
834
+ 'type': 'executable',
835
+ 'dependencies': [
836
+ 'media',
837
+ 'yuv_convert',
838
+ '../base/base.gyp:base',
839
+ '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
840
+ '../ui/ui.gyp:ui',
841
+ ],
842
+ 'include_dirs': [
843
+ '<(DEPTH)/third_party/wtl/include',
844
+ ],
845
+ 'sources': [
846
+ 'tools/player_wtl/list.h',
847
+ 'tools/player_wtl/mainfrm.h',
848
+ 'tools/player_wtl/movie.cc',
849
+ 'tools/player_wtl/movie.h',
850
+ 'tools/player_wtl/player_wtl.cc',
851
+ 'tools/player_wtl/player_wtl.rc',
852
+ 'tools/player_wtl/props.h',
853
+ 'tools/player_wtl/seek.h',
854
+ 'tools/player_wtl/resource.h',
855
+ 'tools/player_wtl/view.h',
856
+ ],
857
+ 'msvs_settings': {
858
+ 'VCLinkerTool': {
859
+ 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
860
+ },
861
+ },
862
+ 'defines': [
863
+ '_CRT_SECURE_NO_WARNINGS=1',
864
+ ],
865
+ },
866
+ ],
867
+ }],
868
+ ['OS == "win" or toolkit_uses_gtk == 1', {
869
+ 'targets': [
870
+ {
871
+ 'target_name': 'shader_bench',
872
+ 'type': 'executable',
873
+ 'dependencies': [
874
+ 'media',
875
+ 'yuv_convert',
876
+ '../base/base.gyp:base',
877
+ '../ui/gl/gl.gyp:gl',
878
+ ],
879
+ 'sources': [
880
+ 'tools/shader_bench/shader_bench.cc',
881
+ 'tools/shader_bench/cpu_color_painter.cc',
882
+ 'tools/shader_bench/cpu_color_painter.h',
883
+ 'tools/shader_bench/gpu_color_painter.cc',
884
+ 'tools/shader_bench/gpu_color_painter.h',
885
+ 'tools/shader_bench/gpu_painter.cc',
886
+ 'tools/shader_bench/gpu_painter.h',
887
+ 'tools/shader_bench/painter.cc',
888
+ 'tools/shader_bench/painter.h',
889
+ 'tools/shader_bench/window.cc',
890
+ 'tools/shader_bench/window.h',
891
+ ],
892
+ 'conditions': [
893
+ ['toolkit_uses_gtk == 1', {
894
+ 'dependencies': [
895
+ '../build/linux/system.gyp:gtk',
896
+ ],
897
+ 'sources': [
898
+ 'tools/shader_bench/window_linux.cc',
899
+ ],
900
+ }],
901
+ ['OS=="win"', {
902
+ 'dependencies': [
903
+ '../third_party/angle/src/build_angle.gyp:libEGL',
904
+ '../third_party/angle/src/build_angle.gyp:libGLESv2',
905
+ ],
906
+ 'sources': [
907
+ 'tools/shader_bench/window_win.cc',
908
+ ],
909
+ }],
910
+ ],
911
+ },
912
+ ],
913
+ }],
914
+ ['OS == "linux" and target_arch != "arm"', {
915
+ 'targets': [
916
+ {
917
+ 'target_name': 'tile_render_bench',
918
+ 'type': 'executable',
919
+ 'dependencies': [
920
+ '../base/base.gyp:base',
921
+ '../ui/gl/gl.gyp:gl',
922
+ ],
923
+ 'libraries': [
924
+ '-lGL',
925
+ '-ldl',
926
+ ],
927
+ 'sources': [
928
+ 'tools/tile_render_bench/tile_render_bench.cc',
929
+ ],
930
+ },
931
+ ],
932
+ }],
933
+ ['os_posix == 1 and OS != "mac" and OS != "android"', {
934
+ 'targets': [
935
+ {
936
+ 'target_name': 'player_x11',
937
+ 'type': 'executable',
938
+ 'dependencies': [
939
+ 'media',
940
+ 'yuv_convert',
941
+ '../base/base.gyp:base',
942
+ '../ui/gl/gl.gyp:gl',
943
+ ],
944
+ 'link_settings': {
945
+ 'libraries': [
946
+ '-ldl',
947
+ '-lX11',
948
+ '-lXrender',
949
+ '-lXext',
950
+ ],
951
+ },
952
+ 'sources': [
953
+ 'tools/player_x11/data_source_logger.cc',
954
+ 'tools/player_x11/data_source_logger.h',
955
+ 'tools/player_x11/gl_video_renderer.cc',
956
+ 'tools/player_x11/gl_video_renderer.h',
957
+ 'tools/player_x11/player_x11.cc',
958
+ 'tools/player_x11/x11_video_renderer.cc',
959
+ 'tools/player_x11/x11_video_renderer.h',
960
+ ],
961
+ },
962
+ ],
963
+ }],
964
+ ['OS == "android"', {
965
+ 'targets': [
966
+ {
967
+ 'target_name': 'player_android',
968
+ 'type': 'static_library',
969
+ 'sources': [
970
+ 'base/android/media_player_bridge.cc',
971
+ 'base/android/media_player_bridge.h',
972
+ ],
973
+ 'dependencies': [
974
+ '../base/base.gyp:base',
975
+ ],
976
+ 'include_dirs': [
977
+ '<(SHARED_INTERMEDIATE_DIR)/media',
978
+ ],
979
+ 'actions': [
980
+ {
981
+ 'action_name': 'generate-jni-headers',
982
+ 'inputs': [
983
+ '../base/android/jni_generator/jni_generator.py',
984
+ 'base/android/java/src/org/chromium/media/MediaPlayerListener.java',
985
+ ],
986
+ 'outputs': [
987
+ '<(SHARED_INTERMEDIATE_DIR)/media/jni/media_player_listener_jni.h',
988
+ ],
989
+ 'action': [
990
+ 'python',
991
+ '<(DEPTH)/base/android/jni_generator/jni_generator.py',
992
+ '-o',
993
+ '<@(_inputs)',
994
+ '<@(_outputs)',
995
+ ],
996
+ },
997
+ ],
998
+ },
999
+ {
1000
+ 'target_name': 'media_java',
1001
+ 'type': 'none',
1002
+ 'dependencies': [ '../base/base.gyp:base_java' ],
1003
+ 'variables': {
1004
+ 'package_name': 'media',
1005
+ 'java_in_dir': 'base/android/java',
1006
+ },
1007
+ 'includes': [ '../build/java.gypi' ],
1008
+ },
1009
+
1010
+ ],
1011
+ }, { # OS != "android"'
1012
+ # Android does not use ffmpeg, so disable the targets which require it.
1013
+ 'targets': [
1014
+ {
1015
+ 'target_name': 'ffmpeg_unittests',
1016
+ 'type': 'executable',
1017
+ 'dependencies': [
1018
+ 'media',
1019
+ 'media_test_support',
1020
+ '../base/base.gyp:base',
1021
+ '../base/base.gyp:base_i18n',
1022
+ '../base/base.gyp:test_support_base',
1023
+ '../base/base.gyp:test_support_perf',
1024
+ '../testing/gtest.gyp:gtest',
1025
+ '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1026
+ ],
1027
+ 'sources': [
1028
+ 'ffmpeg/ffmpeg_unittest.cc',
1029
+ ],
1030
+ 'conditions': [
1031
+ ['toolkit_uses_gtk == 1', {
1032
+ 'dependencies': [
1033
+ # Needed for the following #include chain:
1034
+ # base/run_all_unittests.cc
1035
+ # ../base/test_suite.h
1036
+ # gtk/gtk.h
1037
+ '../build/linux/system.gyp:gtk',
1038
+ ],
1039
+ 'conditions': [
1040
+ ['linux_use_tcmalloc==1', {
1041
+ 'dependencies': [
1042
+ '../base/allocator/allocator.gyp:allocator',
1043
+ ],
1044
+ }],
1045
+ ],
1046
+ }],
1047
+ ],
1048
+ },
1049
+ {
1050
+ 'target_name': 'ffmpeg_regression_tests',
1051
+ 'type': 'executable',
1052
+ 'dependencies': [
1053
+ 'media',
1054
+ 'media_test_support',
1055
+ '../base/base.gyp:test_support_base',
1056
+ '../testing/gmock.gyp:gmock',
1057
+ '../testing/gtest.gyp:gtest',
1058
+ '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1059
+ ],
1060
+ 'sources': [
1061
+ 'base/test_data_util.cc',
1062
+ 'base/run_all_unittests.cc',
1063
+ 'ffmpeg/ffmpeg_regression_tests.cc',
1064
+ 'filters/pipeline_integration_test_base.cc',
1065
+ ],
1066
+ 'conditions': [
1067
+ ['os_posix==1 and OS!="mac"', {
1068
+ 'conditions': [
1069
+ ['linux_use_tcmalloc==1', {
1070
+ 'dependencies': [
1071
+ '../base/allocator/allocator.gyp:allocator',
1072
+ ],
1073
+ }],
1074
+ ],
1075
+ }],
1076
+ ],
1077
+ },
1078
+ {
1079
+ 'target_name': 'ffmpeg_tests',
1080
+ 'type': 'executable',
1081
+ 'dependencies': [
1082
+ 'media',
1083
+ '../base/base.gyp:base',
1084
+ '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1085
+ ],
1086
+ 'sources': [
1087
+ 'test/ffmpeg_tests/ffmpeg_tests.cc',
1088
+ ],
1089
+ },
1090
+ {
1091
+ 'target_name': 'media_bench',
1092
+ 'type': 'executable',
1093
+ 'dependencies': [
1094
+ 'media',
1095
+ '../base/base.gyp:base',
1096
+ '../third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
1097
+ ],
1098
+ 'sources': [
1099
+ 'tools/media_bench/media_bench.cc',
1100
+ ],
1101
+ },
1102
+ ],
1103
+ }]
1104
+ ],
1105
+ }