├── .gitignore ├── .travis.yml ├── LICENSE ├── Pipfile ├── Pipfile.lock ├── README.md ├── azure-pipelines.yml ├── gyp ├── MSVS │ ├── MSVSNew.py │ ├── MSVSSettings.py │ ├── MSVSToolFile.py │ ├── MSVSVersion.py │ └── __init__.py ├── Makefile.tmpl ├── MakefileWriter.py ├── NinjaWriter.py ├── XCodeDetect.py ├── __init__.py ├── buildtime_helpers │ ├── flock_tool.py │ ├── large-pdb-shim.cc │ ├── mac_tool.py │ └── win_tool.py ├── common.py ├── easy_xml.py ├── generator │ ├── __init__.py │ ├── analyzer.py │ ├── cmake.py │ ├── dump_dependency_json.py │ ├── eclipse.py │ ├── gypd.py │ ├── gypsh.py │ ├── make.py │ ├── msvs.py │ ├── ninja.py │ ├── xcode.py │ ├── xcode_ninja.py │ └── xcodeproj_file.py ├── input.py ├── lib │ ├── __init__.py │ ├── ninja_syntax.py │ └── simple_copy.py ├── msvs_emulation.py ├── unit_tests │ ├── MSVSSettings_test.py │ ├── NinjaWriter_test.py │ ├── __init__.py │ ├── common_test.py │ ├── easy_xml_test.py │ ├── generator_msvs_test.py │ ├── generator_xcode_test.py │ └── input_test.py └── xcode_emulation.py ├── gyp_main.py ├── gyptest.py ├── setup.cfg ├── test ├── actions │ ├── bare │ │ ├── gyptest-bare.py │ │ └── src │ │ │ ├── bare.gyp │ │ │ └── bare.py │ ├── depfile │ │ ├── depfile.gyp │ │ ├── gyptest-all.py │ │ └── input.txt │ ├── e2e │ │ ├── generated-header │ │ │ ├── action.py │ │ │ ├── main.cc │ │ │ └── test.gyp │ │ ├── gyptest-all.py │ │ ├── gyptest-default.py │ │ ├── gyptest-errors.py │ │ ├── gyptest-generated-header.py │ │ └── src │ │ │ ├── action_missing_name.gyp │ │ │ ├── actions.gyp │ │ │ ├── confirm-dep-files.py │ │ │ ├── subdir1 │ │ │ ├── counter.py │ │ │ ├── executable.gyp │ │ │ ├── make-prog1.py │ │ │ ├── make-prog2.py │ │ │ └── program.c │ │ │ ├── subdir2 │ │ │ ├── make-file.py │ │ │ └── none.gyp │ │ │ └── subdir3 │ │ │ ├── generate_main.py │ │ │ └── null_input.gyp │ ├── multiple-outputs-with-dependencies │ │ ├── gyptest-action.py │ │ └── src │ │ │ ├── action.gyp │ │ │ └── rcopy.py │ ├── multiple-outputs │ │ ├── gyptest-multiple-outputs.py │ │ └── src │ │ │ ├── multiple-outputs.gyp │ │ │ └── touch.py │ ├── multiple │ │ ├── gyptest-all.py │ │ └── src │ │ │ ├── actions.gyp │ │ │ ├── copyfile.py │ │ │ ├── filter.py │ │ │ ├── foo.c │ │ │ ├── input.txt │ │ │ └── main.c │ ├── none │ │ ├── gyptest-none.py │ │ └── src │ │ │ ├── fake_cross.py │ │ │ ├── foo.cc │ │ │ └── none_with_source_files.gyp │ └── subdir │ │ ├── gyptest-action.py │ │ └── src │ │ ├── make-file.py │ │ ├── none.gyp │ │ └── subdir │ │ ├── make-subdir-file.py │ │ └── subdir.gyp ├── additional-targets │ ├── gyptest-additional.py │ └── src │ │ ├── all.gyp │ │ └── dir1 │ │ ├── actions.gyp │ │ ├── emit.py │ │ └── lib1.c ├── analyzer │ ├── common.gypi │ ├── gyptest-analyzer.py │ ├── static_library_test.gyp │ ├── subdir │ │ ├── subdir.gyp │ │ └── subdir2 │ │ │ └── subdir2.gyp │ ├── subdir2 │ │ ├── subdir.gyp │ │ └── subdir.includes.gypi │ ├── test.gyp │ ├── test2.gyp │ ├── test2.includes.gypi │ ├── test2.includes.includes.gypi │ ├── test2.toplevel_includes.gypi │ ├── test3.gyp │ ├── test4.gyp │ └── test5.gyp ├── arflags │ ├── gyptest-arflags.py │ ├── lib.cc │ └── test.gyp ├── assembly │ ├── gyptest-assembly.py │ ├── gyptest-override.py │ └── src │ │ ├── as.bat │ │ ├── assembly.gyp │ │ ├── lib1.S │ │ ├── lib1.c │ │ ├── override.gyp │ │ ├── override_asm.asm │ │ └── program.c ├── build-option │ ├── gyptest-build.py │ ├── hello.c │ └── hello.gyp ├── builddir │ ├── gyptest-all.py │ ├── gyptest-default.py │ └── src │ │ ├── builddir.gypi │ │ ├── func1.c │ │ ├── func2.c │ │ ├── func3.c │ │ ├── func4.c │ │ ├── func5.c │ │ ├── prog1.c │ │ ├── prog1.gyp │ │ └── subdir2 │ │ ├── prog2.c │ │ ├── prog2.gyp │ │ └── subdir3 │ │ ├── prog3.c │ │ ├── prog3.gyp │ │ └── subdir4 │ │ ├── prog4.c │ │ ├── prog4.gyp │ │ └── subdir5 │ │ ├── prog5.c │ │ └── prog5.gyp ├── cflags │ ├── cflags.c │ ├── cflags.gyp │ └── gyptest-cflags.py ├── compilable │ ├── gyptest-headers.py │ └── src │ │ ├── headers.gyp │ │ ├── lib1.cpp │ │ ├── lib1.hpp │ │ └── program.cpp ├── compiler-override │ ├── compiler-exe.gyp │ ├── compiler-global-settings.gyp.in │ ├── compiler-host.gyp │ ├── compiler-shared-lib.gyp │ ├── cxxtest.cc │ ├── gyptest-compiler-env-simple.py │ ├── gyptest-compiler-env-toolchain.py │ ├── gyptest-compiler-env.py │ ├── gyptest-compiler-global-settings.py │ ├── my_cc.py │ ├── my_cxx.py │ ├── my_ld.py │ ├── my_nm.py │ ├── my_readelf.py │ └── test.c ├── conditions │ └── elseif │ │ ├── elseif.gyp │ │ ├── elseif_bad1.gyp │ │ ├── elseif_bad2.gyp │ │ ├── elseif_bad3.gyp │ │ ├── elseif_conditions.gypi │ │ ├── gyptest_elseif.py │ │ └── program.cc ├── configurations │ ├── arm64 │ │ ├── configurations.c │ │ ├── configurations.gyp │ │ └── gyptest-arm64.py │ ├── basics │ │ ├── configurations.c │ │ ├── configurations.gyp │ │ └── gyptest-configurations.py │ ├── inheritance │ │ ├── configurations.c │ │ ├── configurations.gyp │ │ ├── duplicates.gyp │ │ ├── duplicates.gypd.golden │ │ ├── gyptest-duplicates.py │ │ └── gyptest-inheritance.py │ ├── invalid │ │ ├── actions.gyp │ │ ├── all_dependent_settings.gyp │ │ ├── configurations.gyp │ │ ├── dependencies.gyp │ │ ├── direct_dependent_settings.gyp │ │ ├── gyptest-configurations.py │ │ ├── libraries.gyp │ │ ├── link_settings.gyp │ │ ├── sources.gyp │ │ ├── standalone_static_library.gyp │ │ ├── target_name.gyp │ │ └── type.gyp │ ├── target_platform │ │ ├── configurations.gyp │ │ ├── front.c │ │ ├── gyptest-target_platform.py │ │ ├── left.c │ │ └── right.c │ └── x64 │ │ ├── configurations.c │ │ ├── configurations.gyp │ │ └── gyptest-x86.py ├── copies │ ├── gyptest-all.py │ ├── gyptest-attribs.py │ ├── gyptest-default.py │ ├── gyptest-samedir.py │ ├── gyptest-slash.py │ ├── gyptest-sourceless-shared-lib.py │ ├── gyptest-updir.py │ └── src │ │ ├── copies-attribs.gyp │ │ ├── copies-samedir.gyp │ │ ├── copies-slash.gyp │ │ ├── copies-sourceless-shared-lib.gyp │ │ ├── copies-updir.gyp │ │ ├── copies.gyp │ │ ├── directory │ │ ├── file3 │ │ ├── file4 │ │ └── subdir │ │ │ └── file5 │ │ ├── executable-file.sh │ │ ├── file1 │ │ ├── file2 │ │ ├── foo.c │ │ └── parentdir │ │ └── subdir │ │ └── file6 ├── custom-generator │ ├── gyptest-custom-generator.py │ ├── mygenerator.py │ └── test.gyp ├── cxxflags │ ├── cxxflags.cc │ ├── cxxflags.gyp │ └── gyptest-cxxflags.py ├── defines-escaping │ ├── defines-escaping.c │ ├── defines-escaping.gyp │ └── gyptest-defines-escaping.py ├── defines │ ├── defines-env.gyp │ ├── defines.c │ ├── defines.gyp │ ├── gyptest-define-override.py │ ├── gyptest-defines-env-regyp.py │ ├── gyptest-defines-env.py │ └── gyptest-defines.py ├── dependencies │ ├── a.c │ ├── adso │ │ ├── all_dependent_settings_order.gyp │ │ └── write_args.py │ ├── b │ │ ├── b.c │ │ ├── b.gyp │ │ └── b3.c │ ├── c │ │ ├── c.c │ │ ├── c.gyp │ │ └── d.c │ ├── double_dependency.gyp │ ├── double_dependent.gyp │ ├── extra_targets.gyp │ ├── gyptest-all-dependent-settings-order.py │ ├── gyptest-double-dependency.py │ ├── gyptest-extra-targets.py │ ├── gyptest-indirect-module-dependency.py │ ├── gyptest-lib-only.py │ ├── gyptest-none-traversal.py │ ├── gyptest-sharedlib-linksettings.py │ ├── lib_only.gyp │ ├── main.c │ ├── module-dep │ │ ├── a.cc │ │ ├── dll.cc │ │ ├── exe.cc │ │ └── indirect-module-dependency.gyp │ ├── none_traversal.gyp │ └── sharedlib-linksettings │ │ ├── program.c │ │ ├── sharedlib.c │ │ ├── staticlib.c │ │ └── test.gyp ├── dependency-copy │ ├── gyptest-copy.py │ └── src │ │ ├── copies.gyp │ │ ├── file1.c │ │ └── file2.c ├── determinism │ ├── determinism.gyp │ ├── empty-targets.gyp │ ├── gyptest-determinism.py │ ├── gyptest-empty-target-names.py │ ├── gyptest-needed-variables.py │ ├── gyptest-solibs.py │ ├── main.cc │ ├── needed-variables.gyp │ ├── rule.py │ ├── solib.cc │ └── solibs.gyp ├── empty-target │ ├── empty-target.gyp │ └── gyptest-empty-target.py ├── errors │ ├── dependency_cycle.gyp │ ├── duplicate_basenames.gyp │ ├── duplicate_node.gyp │ ├── duplicate_rule.gyp │ ├── duplicate_targets.gyp │ ├── error_command.gyp │ ├── file_cycle0.gyp │ ├── file_cycle1.gyp │ ├── gyptest-errors.py │ ├── missing_command.gyp │ ├── missing_dep.gyp │ └── missing_targets.gyp ├── escaping │ ├── colon │ │ └── test.gyp │ └── gyptest-colon.py ├── exclusion │ ├── exclusion.gyp │ ├── gyptest-exclusion.py │ └── hello.c ├── external-cross-compile │ ├── gyptest-cross.py │ └── src │ │ ├── bogus1.cc │ │ ├── bogus2.c │ │ ├── cross.gyp │ │ ├── cross_compile.gypi │ │ ├── fake_cross.py │ │ ├── program.cc │ │ ├── test1.cc │ │ ├── test2.c │ │ ├── test3.cc │ │ ├── test4.c │ │ └── tochar.py ├── fixtures │ └── test-charmap.py ├── generator-output │ ├── actions │ │ ├── actions.gyp │ │ ├── build │ │ │ └── README.txt │ │ ├── subdir1 │ │ │ ├── actions-out │ │ │ │ └── README.txt │ │ │ ├── build │ │ │ │ └── README.txt │ │ │ ├── executable.gyp │ │ │ ├── make-prog1.py │ │ │ ├── make-prog2.py │ │ │ └── program.c │ │ └── subdir2 │ │ │ ├── actions-out │ │ │ └── README.txt │ │ │ ├── build │ │ │ └── README.txt │ │ │ ├── make-file.py │ │ │ └── none.gyp │ ├── copies │ │ ├── build │ │ │ └── README.txt │ │ ├── copies-out │ │ │ └── README.txt │ │ ├── copies.gyp │ │ ├── file1 │ │ ├── file2 │ │ └── subdir │ │ │ ├── build │ │ │ └── README.txt │ │ │ ├── copies-out │ │ │ └── README.txt │ │ │ ├── file3 │ │ │ ├── file4 │ │ │ └── subdir.gyp │ ├── gyptest-actions.py │ ├── gyptest-copies.py │ ├── gyptest-depth.py │ ├── gyptest-mac-bundle.py │ ├── gyptest-relocate.py │ ├── gyptest-rules.py │ ├── gyptest-subdir2-deep.py │ ├── gyptest-symlink.py │ ├── gyptest-top-all.py │ ├── mac-bundle │ │ ├── Info.plist │ │ ├── app.order │ │ ├── header.h │ │ ├── main.c │ │ ├── resource.sb │ │ └── test.gyp │ ├── rules │ │ ├── build │ │ │ └── README.txt │ │ ├── copy-file.py │ │ ├── rules.gyp │ │ ├── subdir1 │ │ │ ├── build │ │ │ │ └── README.txt │ │ │ ├── define3.in0 │ │ │ ├── define4.in0 │ │ │ ├── executable.gyp │ │ │ ├── function1.in1 │ │ │ ├── function2.in1 │ │ │ └── program.c │ │ └── subdir2 │ │ │ ├── build │ │ │ └── README.txt │ │ │ ├── file1.in0 │ │ │ ├── file2.in0 │ │ │ ├── file3.in1 │ │ │ ├── file4.in1 │ │ │ ├── none.gyp │ │ │ └── rules-out │ │ │ └── README.txt │ └── src │ │ ├── build │ │ └── README.txt │ │ ├── inc.h │ │ ├── inc1 │ │ └── include1.h │ │ ├── prog1.c │ │ ├── prog1.gyp │ │ ├── subdir2 │ │ ├── build │ │ │ └── README.txt │ │ ├── deeper │ │ │ ├── build │ │ │ │ └── README.txt │ │ │ ├── deeper.c │ │ │ ├── deeper.gyp │ │ │ └── deeper.h │ │ ├── inc2 │ │ │ └── include2.h │ │ ├── prog2.c │ │ └── prog2.gyp │ │ ├── subdir3 │ │ ├── build │ │ │ └── README.txt │ │ ├── inc3 │ │ │ └── include3.h │ │ ├── prog3.c │ │ └── prog3.gyp │ │ └── symroot.gypi ├── gyp-defines │ ├── defines.gyp │ ├── echo.py │ ├── gyptest-multiple-values.py │ └── gyptest-regyp.py ├── hard_dependency │ ├── gyptest-exported-hard-dependency.py │ ├── gyptest-no-exported-hard-dependency.py │ └── src │ │ ├── a.c │ │ ├── a.h │ │ ├── b.c │ │ ├── b.h │ │ ├── c.c │ │ ├── c.h │ │ ├── d.c │ │ ├── emit.py │ │ └── hard_dependency.gyp ├── hello │ ├── gyptest-all.py │ ├── gyptest-default.py │ ├── gyptest-disable-regyp.py │ ├── gyptest-regyp-output.py │ ├── gyptest-regyp.py │ ├── gyptest-target.py │ ├── hello.c │ ├── hello.gyp │ ├── hello2.c │ └── hello2.gyp ├── home_dot_gyp │ ├── gyptest-home-includes-config-arg.py │ ├── gyptest-home-includes-config-env.py │ ├── gyptest-home-includes-regyp.py │ ├── gyptest-home-includes.py │ ├── home │ │ └── .gyp │ │ │ └── include.gypi │ ├── home2 │ │ ├── .gyp │ │ │ └── include.gypi │ │ └── .gyp_new │ │ │ └── include.gypi │ └── src │ │ ├── all.gyp │ │ └── printfoo.c ├── include_dirs │ ├── gyptest-all.py │ ├── gyptest-default.py │ └── src │ │ ├── inc.h │ │ ├── inc1 │ │ └── include1.h │ │ ├── includes.c │ │ ├── includes.gyp │ │ ├── shadow1 │ │ └── shadow.h │ │ ├── shadow2 │ │ └── shadow.h │ │ └── subdir │ │ ├── inc.h │ │ ├── inc2 │ │ └── include2.h │ │ ├── subdir_includes.c │ │ └── subdir_includes.gyp ├── intermediate_dir │ ├── gyptest-intermediate-dir.py │ └── src │ │ ├── script.py │ │ ├── shared_infile.txt │ │ ├── test.gyp │ │ └── test2.gyp ├── ios │ ├── app-bundle │ │ ├── TestApp │ │ │ ├── English.lproj │ │ │ │ ├── InfoPlist-error.strings │ │ │ │ ├── InfoPlist.strings │ │ │ │ ├── LanguageMap.plist │ │ │ │ ├── MainMenu.xib │ │ │ │ └── Main_iPhone.storyboard │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── image.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── super_sylvain.png │ │ │ │ │ ├── super_sylvain@2x.png │ │ │ │ │ └── super_sylvain@3x.png │ │ │ ├── TestApp-Info.plist │ │ │ ├── check_no_signature.py │ │ │ ├── main.m │ │ │ ├── only-compile-in-32-bits.m │ │ │ └── only-compile-in-64-bits.m │ │ ├── test-archs.gyp │ │ ├── test-assets-catalog.gyp │ │ ├── test-crosscompile.gyp │ │ ├── test-device.gyp │ │ ├── test.gyp │ │ └── tool_main.cc │ ├── copies-with-xcode-envvars │ │ ├── Info.plist │ │ ├── copies-with-xcode-envvars.gyp │ │ ├── empty.c │ │ ├── file0 │ │ ├── file1 │ │ ├── file10 │ │ ├── file11 │ │ ├── file2 │ │ ├── file3 │ │ ├── file4 │ │ ├── file5 │ │ ├── file6 │ │ ├── file7 │ │ ├── file8 │ │ └── file9 │ ├── deployment-target │ │ ├── check-version-min.c │ │ └── deployment-target.gyp │ ├── extension │ │ ├── ActionExtension │ │ │ ├── ActionViewController.h │ │ │ ├── ActionViewController.m │ │ │ ├── Info.plist │ │ │ └── MainInterface.storyboard │ │ ├── ExtensionContainer │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Base.lproj │ │ │ │ └── Main.storyboard │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── LaunchImage.launchimage │ │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── ViewController.h │ │ │ ├── ViewController.m │ │ │ └── main.m │ │ └── extension.gyp │ ├── framework │ │ ├── framework.gyp │ │ └── iOSFramework │ │ │ ├── Info.plist │ │ │ ├── Thing.h │ │ │ ├── Thing.m │ │ │ └── iOSFramework.h │ ├── gyptest-app-ios-assets-catalog.py │ ├── gyptest-app-ios.py │ ├── gyptest-archs.py │ ├── gyptest-copies-with-xcode-envvars.py │ ├── gyptest-crosscompile.py │ ├── gyptest-deployment-target.py │ ├── gyptest-extension.py │ ├── gyptest-framework.py │ ├── gyptest-per-config-settings.py │ ├── gyptest-watch.py │ ├── gyptest-xcode-ninja.py │ ├── watch │ │ ├── WatchApp │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── LaunchImage.launchimage │ │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ └── Interface.storyboard │ │ ├── WatchContainer │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.m │ │ │ ├── Base.lproj │ │ │ │ └── Main.storyboard │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── LaunchImage.launchimage │ │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── ViewController.h │ │ │ ├── ViewController.m │ │ │ └── main.m │ │ ├── WatchKitExtension │ │ │ ├── Images.xcassets │ │ │ │ └── MyImage.imageset │ │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── InterfaceController.h │ │ │ ├── InterfaceController.m │ │ │ └── MainInterface.storyboard │ │ └── watch.gyp │ └── xctests │ │ ├── App │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.xib │ │ │ └── Main.storyboard │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── ViewController.h │ │ ├── ViewController.m │ │ └── main.m │ │ ├── AppTests │ │ ├── AppTests.m │ │ └── Info.plist │ │ ├── gyptest-xctests.py │ │ └── xctests.gyp ├── library │ ├── gyptest-shared-obj-install-path.py │ ├── gyptest-shared.py │ ├── gyptest-static.py │ └── src │ │ ├── lib1.c │ │ ├── lib1_moveable.c │ │ ├── lib2.c │ │ ├── lib2_moveable.c │ │ ├── library.gyp │ │ ├── program.c │ │ └── shared_dependency.gyp ├── library_dirs │ ├── gyptest-library-dirs.py │ └── subdir │ │ ├── README.txt │ │ ├── hello.cc │ │ ├── mylib.cc │ │ ├── mylib.h │ │ ├── test-win.gyp │ │ └── test.gyp ├── link-dependency │ ├── gyptest-link-dependency.py │ ├── main.c │ ├── mymalloc.c │ └── test.gyp ├── link-objects │ ├── base.c │ ├── extra.c │ ├── gyptest-all.py │ └── link-objects.gyp ├── linux │ ├── gyptest-implicit-rpath.py │ ├── gyptest-ldflags-duplicates.py │ ├── gyptest-ldflags-from-environment.py │ ├── gyptest-target-rpath.py │ ├── implicit-rpath │ │ ├── file.c │ │ ├── main.c │ │ └── test.gyp │ ├── ldflags-duplicates │ │ ├── check-ldflags.py │ │ ├── lib1.c │ │ ├── lib2.c │ │ ├── main.c │ │ └── test.gyp │ ├── ldflags-from-environment │ │ ├── main.c │ │ └── test.gyp │ └── target-rpath │ │ ├── file.c │ │ ├── main.c │ │ └── test.gyp ├── mac │ ├── action-envvars │ │ └── action │ │ │ ├── action.gyp │ │ │ └── action.sh │ ├── app-bundle │ │ ├── TestApp │ │ │ ├── English.lproj │ │ │ │ ├── InfoPlist-error.strings │ │ │ │ ├── InfoPlist.strings │ │ │ │ ├── MainMenu.xib │ │ │ │ ├── utf-16be.strings │ │ │ │ └── utf-16le.strings │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ └── image.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── super_sylvain.png │ │ │ │ │ ├── super_sylvain@2x.png │ │ │ │ │ └── super_sylvain@3x.png │ │ │ ├── TestApp-Info.plist │ │ │ ├── TestAppAppDelegate.h │ │ │ ├── TestAppAppDelegate.m │ │ │ └── main.m │ │ ├── empty.c │ │ ├── test-assets-catalog.gyp │ │ ├── test-error.gyp │ │ └── test.gyp │ ├── archs │ │ ├── empty_main.cc │ │ ├── file.mm │ │ ├── file_a.cc │ │ ├── file_a.h │ │ ├── file_b.cc │ │ ├── file_b.h │ │ ├── file_c.cc │ │ ├── file_d.cc │ │ ├── header.h │ │ ├── my_file.cc │ │ ├── my_main_file.cc │ │ ├── test-archs-multiarch.gyp │ │ ├── test-archs-x86_64.gyp │ │ ├── test-dependencies.gyp │ │ ├── test-no-archs.gyp │ │ └── test-valid-archs.gyp │ ├── bundle-resources │ │ ├── change.sh │ │ ├── executable-file.sh │ │ ├── secret.txt │ │ └── test.gyp │ ├── cflags │ │ ├── ccfile.cc │ │ ├── ccfile_withcflags.cc │ │ ├── cfile.c │ │ ├── cppfile.cpp │ │ ├── cppfile_withcflags.cpp │ │ ├── cxxfile.cxx │ │ ├── cxxfile_withcflags.cxx │ │ ├── mfile.m │ │ ├── mmfile.mm │ │ ├── mmfile_withcflags.mm │ │ └── test.gyp │ ├── clang-cxx-language-standard │ │ ├── c++11.cc │ │ ├── c++98.cc │ │ └── clang-cxx-language-standard.gyp │ ├── clang-cxx-library │ │ ├── clang-cxx-library.gyp │ │ ├── libc++.cc │ │ └── libstdc++.cc │ ├── copies-with-xcode-envvars │ │ ├── copies-with-xcode-envvars.gyp │ │ ├── empty.c │ │ ├── file0 │ │ ├── file1 │ │ ├── file10 │ │ ├── file11 │ │ ├── file2 │ │ ├── file3 │ │ ├── file4 │ │ ├── file5 │ │ ├── file6 │ │ ├── file7 │ │ ├── file8 │ │ └── file9 │ ├── copy-dylib │ │ ├── empty.c │ │ └── test.gyp │ ├── debuginfo │ │ ├── file.c │ │ └── test.gyp │ ├── depend-on-bundle │ │ ├── English.lproj │ │ │ └── InfoPlist.strings │ │ ├── Info.plist │ │ ├── bundle.c │ │ ├── executable.c │ │ └── test.gyp │ ├── deployment-target │ │ ├── check-version-min.c │ │ └── deployment-target.gyp │ ├── framework-dirs │ │ ├── calculate.c │ │ └── framework-dirs.gyp │ ├── framework-headers │ │ ├── myframework.h │ │ ├── myframework.m │ │ └── test.gyp │ ├── framework │ │ ├── TestFramework │ │ │ ├── English.lproj │ │ │ │ └── InfoPlist.strings │ │ │ ├── Info.plist │ │ │ ├── ObjCVector.h │ │ │ ├── ObjCVector.mm │ │ │ ├── ObjCVectorInternal.h │ │ │ └── TestFramework_Prefix.pch │ │ ├── empty.c │ │ └── framework.gyp │ ├── global-settings │ │ └── src │ │ │ ├── dir1 │ │ │ └── dir1.gyp │ │ │ └── dir2 │ │ │ ├── dir2.gyp │ │ │ └── file.txt │ ├── gyptest-action-envvars.py │ ├── gyptest-app-assets-catalog.py │ ├── gyptest-app-error.py │ ├── gyptest-app.py │ ├── gyptest-archs.py │ ├── gyptest-bundle-resources.py │ ├── gyptest-cflags.py │ ├── gyptest-clang-cxx-language-standard.py │ ├── gyptest-clang-cxx-library.py │ ├── gyptest-copies-with-xcode-envvars.py │ ├── gyptest-copies.py │ ├── gyptest-copy-dylib.py │ ├── gyptest-debuginfo.py │ ├── gyptest-depend-on-bundle.py │ ├── gyptest-deployment-target.py │ ├── gyptest-framework-dirs.py │ ├── gyptest-framework-headers.py │ ├── gyptest-framework.py │ ├── gyptest-global-settings.py │ ├── gyptest-identical-name.py │ ├── gyptest-infoplist-process.py │ ├── gyptest-installname.py │ ├── gyptest-kext.py │ ├── gyptest-ldflags-passed-to-libtool.py │ ├── gyptest-ldflags.py │ ├── gyptest-libraries.py │ ├── gyptest-libtool-zero.py │ ├── gyptest-loadable-module-bundle-product-extension.py │ ├── gyptest-loadable-module.py │ ├── gyptest-lto.py │ ├── gyptest-missing-cfbundlesignature.py │ ├── gyptest-non-strs-flattened-to-env.py │ ├── gyptest-objc-arc.py │ ├── gyptest-objc-gc.py │ ├── gyptest-postbuild-copy-bundle.py │ ├── gyptest-postbuild-defaults.py │ ├── gyptest-postbuild-fail.py │ ├── gyptest-postbuild-multiple-configurations.py │ ├── gyptest-postbuild-static-library.py │ ├── gyptest-postbuild.py │ ├── gyptest-prefixheader.py │ ├── gyptest-rebuild.py │ ├── gyptest-rpath.py │ ├── gyptest-sdkroot.py │ ├── gyptest-sourceless-module.py │ ├── gyptest-strip-default.py │ ├── gyptest-strip.py │ ├── gyptest-swift-library.py │ ├── gyptest-type-envvars.py │ ├── gyptest-unicode-settings.py │ ├── gyptest-xcode-env-order.py │ ├── gyptest-xcode-gcc-clang.py │ ├── gyptest-xcode-gcc.py │ ├── gyptest-xcode-support-actions.py │ ├── gyptest-xctest.py │ ├── gyptest-xcuitest.py │ ├── identical-name │ │ ├── proxy │ │ │ ├── proxy.cc │ │ │ ├── proxy.gyp │ │ │ └── testlib │ │ │ │ ├── testlib.cc │ │ │ │ └── testlib.gyp │ │ ├── test-should-fail.gyp │ │ ├── test.gyp │ │ ├── test.gypi │ │ └── testlib │ │ │ ├── main.cc │ │ │ ├── testlib.gyp │ │ │ └── void.cc │ ├── infoplist-process │ │ ├── Info.plist │ │ ├── main.c │ │ ├── test1.gyp │ │ ├── test2.gyp │ │ └── test3.gyp │ ├── installname │ │ ├── Info.plist │ │ ├── file.c │ │ ├── main.c │ │ └── test.gyp │ ├── kext │ │ ├── GypKext │ │ │ ├── GypKext-Info.plist │ │ │ └── GypKext.c │ │ └── kext.gyp │ ├── ldflags-libtool │ │ ├── file.c │ │ └── test.gyp │ ├── ldflags │ │ └── subdirectory │ │ │ ├── Info.plist │ │ │ ├── file.c │ │ │ ├── symbol_list.def │ │ │ └── test.gyp │ ├── libraries │ │ └── subdir │ │ │ ├── README.txt │ │ │ ├── hello.cc │ │ │ ├── mylib.c │ │ │ └── test.gyp │ ├── libtool-zero │ │ ├── mylib.c │ │ └── test.gyp │ ├── loadable-module-bundle-product-extension │ │ ├── src.cc │ │ └── test.gyp │ ├── loadable-module │ │ ├── Info.plist │ │ ├── module.c │ │ └── test.gyp │ ├── lto │ │ ├── asmfile.S │ │ ├── ccfile.cc │ │ ├── cfile.c │ │ ├── mfile.m │ │ ├── mmfile.mm │ │ └── test.gyp │ ├── missing-cfbundlesignature │ │ ├── Info.plist │ │ ├── Other-Info.plist │ │ ├── Third-Info.plist │ │ ├── file.c │ │ └── test.gyp │ ├── non-strs-flattened-to-env │ │ ├── Info.plist │ │ ├── main.c │ │ └── test.gyp │ ├── objc-arc │ │ ├── c-file.c │ │ ├── cc-file.cc │ │ ├── m-file-no-arc.m │ │ ├── m-file.m │ │ ├── mm-file-no-arc.mm │ │ ├── mm-file.mm │ │ └── test.gyp │ ├── objc-gc │ │ ├── c-file.c │ │ ├── cc-file.cc │ │ ├── main.m │ │ ├── needs-gc-mm.mm │ │ ├── needs-gc.m │ │ └── test.gyp │ ├── postbuild-copy-bundle │ │ ├── Framework-Info.plist │ │ ├── TestApp-Info.plist │ │ ├── copied.txt │ │ ├── empty.c │ │ ├── main.c │ │ ├── postbuild-copy-framework.sh │ │ ├── resource_file.sb │ │ └── test.gyp │ ├── postbuild-defaults │ │ ├── Info.plist │ │ ├── main.c │ │ ├── postbuild-defaults.sh │ │ └── test.gyp │ ├── postbuild-fail │ │ ├── file.c │ │ ├── postbuild-fail.sh │ │ ├── test.gyp │ │ ├── touch-dynamic.sh │ │ └── touch-static.sh │ ├── postbuild-multiple-configurations │ │ ├── main.c │ │ ├── postbuild-touch-file.sh │ │ └── test.gyp │ ├── postbuild-static-library │ │ ├── empty.c │ │ ├── postbuild-touch-file.sh │ │ └── test.gyp │ ├── postbuilds │ │ ├── copy.sh │ │ ├── file.c │ │ ├── file_g.c │ │ ├── file_h.c │ │ ├── script │ │ │ ├── shared_library_postbuild.sh │ │ │ └── static_library_postbuild.sh │ │ ├── subdirectory │ │ │ ├── copied_file.txt │ │ │ └── nested_target.gyp │ │ └── test.gyp │ ├── prefixheader │ │ ├── file.c │ │ ├── file.cc │ │ ├── file.m │ │ ├── file.mm │ │ ├── header.h │ │ └── test.gyp │ ├── rebuild │ │ ├── TestApp-Info.plist │ │ ├── delay-touch.sh │ │ ├── empty.c │ │ ├── main.c │ │ └── test.gyp │ ├── rpath │ │ ├── file.c │ │ ├── main.c │ │ └── test.gyp │ ├── sdkroot │ │ ├── file.cc │ │ ├── test.gyp │ │ └── test_shorthand.sh │ ├── sourceless-module │ │ ├── empty.c │ │ ├── empty.txt │ │ ├── fun.c │ │ └── test.gyp │ ├── strip │ │ ├── file.c │ │ ├── main.c │ │ ├── strip.saves │ │ ├── subdirectory │ │ │ ├── nested_file.c │ │ │ ├── nested_strip.saves │ │ │ ├── subdirectory.gyp │ │ │ └── test_reading_save_file_from_postbuild.sh │ │ ├── test-defaults.gyp │ │ └── test.gyp │ ├── swift-library │ │ ├── Info.plist │ │ ├── file.swift │ │ └── test.gyp │ ├── type_envvars │ │ ├── file.c │ │ ├── test.gyp │ │ ├── test_bundle_executable.sh │ │ ├── test_bundle_loadable_module.sh │ │ ├── test_bundle_shared_library.sh │ │ ├── test_check_sdkroot.sh │ │ ├── test_nonbundle_executable.sh │ │ ├── test_nonbundle_loadable_module.sh │ │ ├── test_nonbundle_none.sh │ │ ├── test_nonbundle_shared_library.sh │ │ └── test_nonbundle_static_library.sh │ ├── unicode-settings │ │ ├── file.cc │ │ ├── test.gyp │ │ └── test_bundle_display_name.sh │ ├── xcode-env-order │ │ ├── Info.plist │ │ ├── file.ext1 │ │ ├── file.ext2 │ │ ├── file.ext3 │ │ ├── main.c │ │ └── test.gyp │ ├── xcode-gcc │ │ ├── aliasing.cc │ │ ├── test-clang.gyp │ │ ├── test.gyp │ │ ├── valid_c.c │ │ ├── valid_cc.cc │ │ ├── valid_m.m │ │ ├── valid_mm.mm │ │ ├── warn_about_invalid_offsetof_macro.cc │ │ └── warn_about_missing_newline.c │ ├── xcode-support-actions │ │ ├── source.c │ │ └── test.gyp │ ├── xctest │ │ ├── MyClass.h │ │ ├── MyClass.m │ │ ├── TestCase.m │ │ ├── resource.txt │ │ ├── test.gyp │ │ └── test.xcodeproj │ │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── classes.xcscheme │ └── xcuitest │ │ ├── Info.plist │ │ ├── MyAppDelegate.h │ │ ├── MyAppDelegate.m │ │ ├── TestCase.m │ │ ├── main.m │ │ ├── resource.txt │ │ └── test.gyp ├── make │ ├── dependencies.gyp │ ├── gyptest-dependencies.py │ ├── gyptest-noload.py │ ├── main.cc │ ├── main.h │ └── noload │ │ ├── all.gyp │ │ ├── lib │ │ ├── shared.c │ │ ├── shared.gyp │ │ └── shared.h │ │ └── main.c ├── make_global_settings │ ├── ar │ │ ├── gyptest-make_global_settings_ar.py │ │ └── make_global_settings_ar.gyp │ ├── basics │ │ ├── gyptest-make_global_settings.py │ │ └── make_global_settings.gyp │ ├── env-wrapper │ │ ├── gyptest-wrapper.py │ │ └── wrapper.gyp │ ├── full-toolchain │ │ ├── bar.cc │ │ ├── foo.c │ │ ├── gyptest-make_global_settings.py │ │ ├── make_global_settings.gyp │ │ ├── my_nm.py │ │ └── my_readelf.py │ ├── ld │ │ ├── gyptest-make_global_settings_ld.py │ │ └── make_global_settings_ld.gyp │ └── wrapper │ │ ├── gyptest-wrapper.py │ │ └── wrapper.gyp ├── many-actions │ ├── file0 │ ├── file1 │ ├── file2 │ ├── file3 │ ├── file4 │ ├── gyptest-many-actions-unsorted.py │ ├── gyptest-many-actions.py │ ├── many-actions-unsorted.gyp │ └── many-actions.gyp ├── module │ ├── gyptest-default.py │ └── src │ │ ├── lib1.c │ │ ├── lib2.c │ │ ├── module.gyp │ │ └── program.c ├── msvs │ ├── buildevents │ │ ├── buildevents.gyp │ │ ├── gyptest-msbuild-supports-prepostbuild.py │ │ ├── gyptest-ninja-warnings.py │ │ └── main.cc │ ├── config_attrs │ │ ├── gyptest-config_attrs.py │ │ ├── hello.c │ │ └── hello.gyp │ ├── express │ │ ├── base │ │ │ └── base.gyp │ │ ├── express.gyp │ │ └── gyptest-express.py │ ├── external_builder │ │ ├── external.gyp │ │ ├── external_builder.py │ │ ├── gyptest-all.py │ │ ├── hello.cpp │ │ ├── hello.z │ │ ├── msbuild_action.py │ │ └── msbuild_rule.py │ ├── filters │ │ ├── filters.gyp │ │ └── gyptest-filters-2010.py │ ├── list_excluded │ │ ├── gyptest-all.py │ │ ├── hello.cpp │ │ ├── hello_exclude.gyp │ │ └── hello_mac.cpp │ ├── missing_sources │ │ ├── gyptest-missing.py │ │ └── hello_missing.gyp │ ├── multiple_actions_error_handling │ │ ├── action_fail.py │ │ ├── action_succeed.py │ │ ├── actions.gyp │ │ └── gyptest.py │ ├── props │ │ ├── AppName.props │ │ ├── AppName.vsprops │ │ ├── gyptest-props.py │ │ ├── hello.c │ │ └── hello.gyp │ ├── rules_stdout_stderr │ │ ├── dummy.bar │ │ ├── dummy.foo │ │ ├── gyptest-rules-stdout-stderr.py │ │ ├── rule_stderr.py │ │ ├── rule_stdout.py │ │ └── rules-stdout-stderr.gyp │ ├── shared_output │ │ ├── common.gypi │ │ ├── gyptest-shared_output.py │ │ ├── hello.c │ │ ├── hello.gyp │ │ └── there │ │ │ ├── there.c │ │ │ └── there.gyp │ └── uldi2010 │ │ ├── gyptest-all.py │ │ ├── hello.c │ │ ├── hello.gyp │ │ └── hello2.c ├── multiple-targets │ ├── gyptest-all.py │ ├── gyptest-default.py │ └── src │ │ ├── common.c │ │ ├── multiple.gyp │ │ ├── prog1.c │ │ └── prog2.c ├── ninja │ ├── action-rule-hash │ │ ├── gyptest-action-rule-hash.py │ │ └── subdir │ │ │ ├── action-rule-hash.gyp │ │ │ └── emit.py │ ├── action_dependencies │ │ ├── gyptest-action-dependencies.py │ │ └── src │ │ │ ├── a.c │ │ │ ├── a.h │ │ │ ├── action_dependencies.gyp │ │ │ ├── b.c │ │ │ ├── b.h │ │ │ ├── c.c │ │ │ ├── c.h │ │ │ └── emit.py │ ├── chained-dependency │ │ ├── chained-dependency.gyp │ │ ├── chained.c │ │ └── gyptest-chained-dependency.py │ ├── empty-and-non-empty-duplicate-name │ │ ├── gyptest-empty-and-non-empty-duplicate-name.py │ │ ├── subdir │ │ │ └── included.gyp │ │ └── test.gyp │ ├── normalize-paths-win │ │ ├── gyptest-normalize-paths.py │ │ ├── hello.cc │ │ └── normalize-paths.gyp │ ├── s-needs-no-depfiles │ │ ├── empty.s │ │ ├── gyptest-s-needs-no-depfiles.py │ │ └── s-needs-no-depfiles.gyp │ ├── solibs_avoid_relinking │ │ ├── gyptest-solibs-avoid-relinking.py │ │ ├── main.cc │ │ ├── solib.cc │ │ └── solibs_avoid_relinking.gyp │ ├── use-console │ │ ├── foo.bar │ │ ├── gyptest-use-console.py │ │ └── use-console.gyp │ └── use-custom-environment-files │ │ ├── gyptest-use-custom-environment-files.py │ │ ├── use-custom-environment-files.cc │ │ └── use-custom-environment-files.gyp ├── no-cpp │ ├── gyptest-no-cpp.py │ └── src │ │ ├── call-f-main.c │ │ ├── empty-main.c │ │ ├── f.cc │ │ └── test.gyp ├── no-output │ ├── gyptest-no-output.py │ └── src │ │ └── nooutput.gyp ├── product │ ├── gyptest-product.py │ ├── hello.c │ └── product.gyp ├── prune_targets │ ├── gyptest-prune-targets.py │ ├── lib1.cc │ ├── lib2.cc │ ├── lib3.cc │ ├── lib_indirect.cc │ ├── program.cc │ ├── test1.gyp │ └── test2.gyp ├── relative │ ├── foo │ │ ├── a │ │ │ ├── a.cc │ │ │ ├── a.gyp │ │ │ └── c │ │ │ │ ├── c.cc │ │ │ │ └── c.gyp │ │ └── b │ │ │ ├── b.cc │ │ │ └── b.gyp │ └── gyptest-default.py ├── rename │ ├── filecase │ │ ├── file.c │ │ ├── test-casesensitive.gyp │ │ └── test.gyp │ └── gyptest-filecase.py ├── restat │ ├── gyptest-restat.py │ └── src │ │ ├── create_intermediate.py │ │ ├── restat.gyp │ │ └── touch.py ├── rules │ ├── dirname │ │ ├── gyptest-dirname.py │ │ └── src │ │ │ ├── actions.gyp │ │ │ ├── copy-file.py │ │ │ └── subdir │ │ │ ├── a │ │ │ └── b │ │ │ │ ├── c.gencc │ │ │ │ └── c.printvars │ │ │ ├── foo │ │ │ └── bar │ │ │ │ ├── baz.gencc │ │ │ │ └── baz.printvars │ │ │ ├── input-rule-dirname.gyp │ │ │ ├── main.cc │ │ │ ├── nodir.gencc │ │ │ └── printvars.py │ ├── e2e │ │ ├── gyptest-all.py │ │ ├── gyptest-default.py │ │ ├── gyptest-input-root.py │ │ ├── gyptest-special-variables.py │ │ └── src │ │ │ ├── actions.gyp │ │ │ ├── an_asm.S │ │ │ ├── as.bat │ │ │ ├── copy-file.py │ │ │ ├── external │ │ │ ├── external.gyp │ │ │ ├── file1.in │ │ │ └── file2.in │ │ │ ├── input-root.gyp │ │ │ ├── noaction │ │ │ ├── file1.in │ │ │ └── no_action_with_rules_fails.gyp │ │ │ ├── rule.py │ │ │ ├── somefile.ext │ │ │ ├── special-variables.gyp │ │ │ ├── subdir1 │ │ │ ├── executable.gyp │ │ │ ├── function1.in │ │ │ ├── function2.in │ │ │ └── program.c │ │ │ ├── subdir2 │ │ │ ├── both_rule_and_action_input.gyp │ │ │ ├── file1.in │ │ │ ├── file2.in │ │ │ ├── never_used.gyp │ │ │ ├── no_action.gyp │ │ │ ├── no_inputs.gyp │ │ │ ├── none.gyp │ │ │ └── program.c │ │ │ ├── subdir3 │ │ │ ├── executable2.gyp │ │ │ ├── function3.in │ │ │ └── program.c │ │ │ └── subdir4 │ │ │ ├── asm-function.assem │ │ │ ├── build-asm.gyp │ │ │ └── program.c │ ├── rebuild │ │ ├── gyptest-all.py │ │ ├── gyptest-default.py │ │ └── src │ │ │ ├── main.c │ │ │ ├── make-sources.py │ │ │ ├── prog1.in │ │ │ ├── prog2.in │ │ │ └── same_target.gyp │ ├── use-built-dependencies │ │ ├── gyptest-use-built-dependencies.py │ │ └── src │ │ │ ├── main.cc │ │ │ └── use-built-dependencies-rule.gyp │ └── variables │ │ ├── gyptest-rules-variables.py │ │ └── src │ │ ├── input_ext.c │ │ ├── input_name │ │ └── test.c │ │ ├── input_path │ │ └── subdir │ │ │ └── test.c │ │ ├── subdir │ │ ├── input_dirname.c │ │ └── test.c │ │ ├── test.input_root.c │ │ └── variables.gyp ├── same-gyp-name │ ├── gyptest-all.py │ ├── gyptest-default.py │ ├── gyptest-library.py │ ├── library │ │ ├── one │ │ │ └── sub.gyp │ │ ├── test.gyp │ │ └── two │ │ │ └── sub.gyp │ └── src │ │ ├── all.gyp │ │ ├── subdir1 │ │ ├── executable.gyp │ │ └── main1.cc │ │ └── subdir2 │ │ ├── executable.gyp │ │ └── main2.cc ├── same-rule-output-file-name │ ├── gyptest-all.py │ └── src │ │ ├── subdir1 │ │ └── subdir1.gyp │ │ ├── subdir2 │ │ └── subdir2.gyp │ │ ├── subdirs.gyp │ │ └── touch.py ├── same-source-file-name │ ├── gyptest-all.py │ ├── gyptest-default.py │ ├── gyptest-pass-executable.py │ ├── gyptest-pass-shared.py │ ├── gyptest-static.py │ └── src │ │ ├── all.gyp │ │ ├── double-executable.gyp │ │ ├── double-shared.gyp │ │ ├── double-static.gyp │ │ ├── func.c │ │ ├── prog1.c │ │ ├── prog2.c │ │ ├── prog3.c │ │ ├── subdir1 │ │ └── func.c │ │ └── subdir2 │ │ └── func.c ├── same-target-name-different-directory │ ├── gyptest-all.py │ └── src │ │ ├── subdir1 │ │ └── subdir1.gyp │ │ ├── subdir2 │ │ └── subdir2.gyp │ │ ├── subdirs.gyp │ │ └── touch.py ├── same-target-name │ ├── gyptest-same-target-name.py │ └── src │ │ ├── all.gyp │ │ ├── executable1.gyp │ │ └── executable2.gyp ├── sanitize-rule-names │ ├── blah.S │ ├── gyptest-sanitize-rule-names.py │ ├── hello.cc │ ├── sanitize-rule-names.gyp │ └── script.py ├── self-dependency │ ├── common.gypi │ ├── dep.gyp │ ├── gyptest-self-dependency.py │ └── self_dependency.gyp ├── sibling │ ├── gyptest-all.py │ ├── gyptest-relocate.py │ └── src │ │ ├── build │ │ └── all.gyp │ │ ├── prog1 │ │ ├── prog1.c │ │ └── prog1.gyp │ │ └── prog2 │ │ ├── prog2.c │ │ └── prog2.gyp ├── small │ └── gyptest-small.py ├── standalone-static-library │ ├── gyptest-standalone-static-library.py │ ├── invalid.gyp │ ├── mylib.c │ ├── mylib.gyp │ └── prog.c ├── standalone │ ├── gyptest-standalone.py │ └── standalone.gyp ├── subdirectory │ ├── gyptest-SYMROOT-all.py │ ├── gyptest-SYMROOT-default.py │ ├── gyptest-subdir-all.py │ ├── gyptest-subdir-default.py │ ├── gyptest-subdir2-deep.py │ ├── gyptest-top-all.py │ ├── gyptest-top-default.py │ └── src │ │ ├── prog1.c │ │ ├── prog1.gyp │ │ ├── subdir │ │ ├── prog2.c │ │ ├── prog2.gyp │ │ └── subdir2 │ │ │ ├── prog3.c │ │ │ └── prog3.gyp │ │ └── symroot.gypi ├── symlinks │ ├── gyptest-symlinks.py │ ├── hello.c │ └── hello.gyp ├── target │ ├── gyptest-target.py │ ├── hello.c │ └── target.gyp ├── toolsets │ ├── gyptest-toolsets.py │ ├── main.cc │ ├── toolsets.cc │ ├── toolsets.gyp │ └── toolsets_shared.cc ├── toplevel-dir │ ├── gyptest-toplevel-dir.py │ └── src │ │ ├── sub1 │ │ ├── main.gyp │ │ └── prog1.c │ │ └── sub2 │ │ ├── prog2.c │ │ └── prog2.gyp ├── variables │ ├── commands │ │ ├── commands-repeated.gyp │ │ ├── commands-repeated.gyp.stdout │ │ ├── commands-repeated.gypd.golden │ │ ├── commands.gyp │ │ ├── commands.gyp.ignore-env.stdout │ │ ├── commands.gyp.stdout │ │ ├── commands.gypd.golden │ │ ├── commands.gypi │ │ ├── gyptest-commands-ignore-env.py │ │ ├── gyptest-commands-repeated-multidir.py │ │ ├── gyptest-commands-repeated.py │ │ ├── gyptest-commands.py │ │ ├── repeated_multidir │ │ │ ├── dir_1 │ │ │ │ └── test_1.gyp │ │ │ ├── dir_2 │ │ │ │ └── test_2.gyp │ │ │ ├── main.gyp │ │ │ ├── print_cwd_basename.py │ │ │ └── repeated_command_common.gypi │ │ ├── test.py │ │ └── update_golden │ ├── empty │ │ ├── empty.gyp │ │ ├── empty.gypi │ │ └── gyptest-empty.py │ ├── filelist │ │ ├── filelist.gyp.stdout │ │ ├── filelist.gypd.golden │ │ ├── gyptest-filelist-golden.py │ │ ├── gyptest-filelist.py │ │ ├── src │ │ │ ├── dummy.py │ │ │ ├── filelist.gyp │ │ │ └── filelist2.gyp │ │ └── update_golden │ ├── latelate │ │ ├── gyptest-latelate.py │ │ └── src │ │ │ ├── latelate.gyp │ │ │ └── program.cc │ ├── pymod_do_main │ │ ├── ForEachFormat.py │ │ ├── GetConstantValue.py │ │ ├── commands-pymod_do_main.gyp │ │ ├── commands-pymod_do_main.gyp.stdout │ │ ├── commands-pymod_do_main.gypd.golden │ │ ├── commands-pymod_do_main.gypi │ │ ├── gyptest-commands-pymod_do_main.py │ │ └── update_golden.bash │ └── variable-in-path │ │ ├── C1 │ │ └── hello.cc │ │ ├── gyptest-variable-in-path.py │ │ └── variable-in-path.gyp ├── win │ ├── asm-files │ │ ├── asm-files.gyp │ │ ├── b.s │ │ ├── c.S │ │ └── hello.cc │ ├── batch-file-action │ │ ├── batch-file-action.gyp │ │ ├── infile │ │ └── somecmd.bat │ ├── command-quote │ │ ├── a.S │ │ ├── bat with spaces.bat │ │ ├── command-quote.gyp │ │ ├── go.bat │ │ └── subdir │ │ │ └── and │ │ │ └── another │ │ │ └── in-subdir.gyp │ ├── compiler-flags │ │ ├── additional-include-dirs.cc │ │ ├── additional-include-dirs.gyp │ │ ├── additional-options.cc │ │ ├── additional-options.gyp │ │ ├── analysis.gyp │ │ ├── buffer-security-check.gyp │ │ ├── buffer-security.cc │ │ ├── calling-convention-cdecl.def │ │ ├── calling-convention-fastcall.def │ │ ├── calling-convention-stdcall.def │ │ ├── calling-convention-vectorcall.def │ │ ├── calling-convention.cc │ │ ├── calling-convention.gyp │ │ ├── character-set-mbcs.cc │ │ ├── character-set-unicode.cc │ │ ├── character-set.gyp │ │ ├── compile-as-managed.cc │ │ ├── compile-as-managed.gyp │ │ ├── compile-as-winrt.cc │ │ ├── compile-as-winrt.gyp │ │ ├── debug-format.gyp │ │ ├── default-char-is-unsigned.cc │ │ ├── default-char-is-unsigned.gyp │ │ ├── disable-specific-warnings.cc │ │ ├── disable-specific-warnings.gyp │ │ ├── enable-enhanced-instruction-set.cc │ │ ├── enable-enhanced-instruction-set.gyp │ │ ├── exception-handling-on.cc │ │ ├── exception-handling.gyp │ │ ├── floating-point-model-fast.cc │ │ ├── floating-point-model-precise.cc │ │ ├── floating-point-model-strict.cc │ │ ├── floating-point-model.gyp │ │ ├── force-include-files-with-precompiled.cc │ │ ├── force-include-files.cc │ │ ├── force-include-files.gyp │ │ ├── function-level-linking.cc │ │ ├── function-level-linking.gyp │ │ ├── hello.cc │ │ ├── optimizations.gyp │ │ ├── pdbname-override.gyp │ │ ├── pdbname.cc │ │ ├── pdbname.gyp │ │ ├── precomp.cc │ │ ├── rtti-on.cc │ │ ├── rtti.gyp │ │ ├── runtime-checks.cc │ │ ├── runtime-checks.gyp │ │ ├── runtime-library-md.cc │ │ ├── runtime-library-mdd.cc │ │ ├── runtime-library-mt.cc │ │ ├── runtime-library-mtd.cc │ │ ├── runtime-library.gyp │ │ ├── subdir │ │ │ └── header.h │ │ ├── treat-wchar-t-as-built-in-type.gyp │ │ ├── treat-wchar-t-as-built-in-type1.cc │ │ ├── treat-wchar-t-as-built-in-type2.cc │ │ ├── uninit.cc │ │ ├── warning-as-error.gyp │ │ ├── warning-level.gyp │ │ ├── warning-level1.cc │ │ ├── warning-level2.cc │ │ ├── warning-level3.cc │ │ └── warning-level4.cc │ ├── enable-winrt │ │ ├── dllmain.cc │ │ └── enable-winrt.gyp │ ├── generator-output-different-drive │ │ ├── gyptest-generator-output-different-drive.py │ │ ├── prog.c │ │ └── prog.gyp │ ├── gyptest-asm-files.py │ ├── gyptest-cl-additional-include-dirs.py │ ├── gyptest-cl-additional-options.py │ ├── gyptest-cl-analysis.py │ ├── gyptest-cl-buffer-security-check.py │ ├── gyptest-cl-calling-convention.py │ ├── gyptest-cl-character-set.py │ ├── gyptest-cl-compile-as-managed.py │ ├── gyptest-cl-compile-as-winrt.py │ ├── gyptest-cl-debug-format.py │ ├── gyptest-cl-default-char-is-unsigned.py │ ├── gyptest-cl-disable-specific-warnings.py │ ├── gyptest-cl-enable-enhanced-instruction-set.py │ ├── gyptest-cl-exception-handling.py │ ├── gyptest-cl-floating-point-model.py │ ├── gyptest-cl-force-include-files.py │ ├── gyptest-cl-function-level-linking.py │ ├── gyptest-cl-optimizations.py │ ├── gyptest-cl-pdbname-override.py │ ├── gyptest-cl-pdbname.py │ ├── gyptest-cl-rtti.py │ ├── gyptest-cl-runtime-checks.py │ ├── gyptest-cl-runtime-library.py │ ├── gyptest-cl-treat-wchar-t-as-built-in-type.py │ ├── gyptest-cl-warning-as-error.py │ ├── gyptest-cl-warning-level.py │ ├── gyptest-command-quote.py │ ├── gyptest-crosscompile-ar.py │ ├── gyptest-lib-ltcg.py │ ├── gyptest-link-additional-deps.py │ ├── gyptest-link-additional-options.py │ ├── gyptest-link-aslr.py │ ├── gyptest-link-base-address.py │ ├── gyptest-link-debug-info.py │ ├── gyptest-link-default-libs.py │ ├── gyptest-link-deffile.py │ ├── gyptest-link-defrelink.py │ ├── gyptest-link-delay-load-dlls.py │ ├── gyptest-link-embed-manifest.py │ ├── gyptest-link-enable-uac.py │ ├── gyptest-link-enable-winrt-app-revision.py │ ├── gyptest-link-enable-winrt-target-platform-version.py │ ├── gyptest-link-enable-winrt.py │ ├── gyptest-link-entrypointsymbol.py │ ├── gyptest-link-fixed-base.py │ ├── gyptest-link-force-symbol-reference.py │ ├── gyptest-link-generate-manifest.py │ ├── gyptest-link-incremental.py │ ├── gyptest-link-large-address-aware.py │ ├── gyptest-link-large-pdb.py │ ├── gyptest-link-library-adjust.py │ ├── gyptest-link-library-directories.py │ ├── gyptest-link-ltcg.py │ ├── gyptest-link-mapfile.py │ ├── gyptest-link-nodefaultlib.py │ ├── gyptest-link-noimportlib.py │ ├── gyptest-link-nxcompat.py │ ├── gyptest-link-opt-icf.py │ ├── gyptest-link-opt-ref.py │ ├── gyptest-link-ordering.py │ ├── gyptest-link-outputfile.py │ ├── gyptest-link-pdb-no-output.py │ ├── gyptest-link-pdb-output.py │ ├── gyptest-link-pdb.py │ ├── gyptest-link-pgo.py │ ├── gyptest-link-profile.py │ ├── gyptest-link-restat-importlib.py │ ├── gyptest-link-safeseh.py │ ├── gyptest-link-shard.py │ ├── gyptest-link-stacksize.py │ ├── gyptest-link-subsystem.py │ ├── gyptest-link-target-machine.py │ ├── gyptest-link-tsaware.py │ ├── gyptest-link-uldi-depending-on-module.py │ ├── gyptest-link-uldi.py │ ├── gyptest-link-unsupported-manifest.py │ ├── gyptest-link-update-manifest.py │ ├── gyptest-link-warnings-as-errors.py │ ├── gyptest-long-command-line.py │ ├── gyptest-macro-projectname.py │ ├── gyptest-macro-targetext.py │ ├── gyptest-macro-targetfilename.py │ ├── gyptest-macro-targetname.py │ ├── gyptest-macro-targetpath.py │ ├── gyptest-macro-vcinstalldir.py │ ├── gyptest-macros-containing-gyp.py │ ├── gyptest-macros-in-inputs-and-outputs.py │ ├── gyptest-midl-excluded.py │ ├── gyptest-midl-includedirs.py │ ├── gyptest-midl-rules.py │ ├── gyptest-ml-safeseh.py │ ├── gyptest-quoting-commands.py │ ├── gyptest-rc-build.py │ ├── gyptest-sys.py │ ├── gyptest-system-include.py │ ├── idl-excluded │ │ ├── bad.idl │ │ ├── copy-file.py │ │ ├── idl-excluded.gyp │ │ └── program.cc │ ├── idl-includedirs │ │ ├── hello.cc │ │ ├── idl-includedirs.gyp │ │ └── subdir │ │ │ ├── bar.idl │ │ │ └── foo.idl │ ├── idl-rules │ │ ├── Window.idl │ │ ├── basic-idl.gyp │ │ ├── history_indexer.idl │ │ ├── history_indexer_user.cc │ │ └── idl_compiler.py │ ├── importlib │ │ ├── dll_no_exports.cc │ │ ├── has-exports.cc │ │ ├── hello.cc │ │ ├── importlib.gyp │ │ └── noimplib.gyp │ ├── large-pdb │ │ ├── dllmain.cc │ │ ├── large-pdb.gyp │ │ └── main.cc │ ├── lib-crosscompile │ │ ├── answer.cc │ │ ├── answer.h │ │ └── use_host_ar.gyp │ ├── lib-flags │ │ ├── answer.cc │ │ ├── answer.h │ │ └── ltcg.gyp │ ├── linker-flags │ │ ├── a │ │ │ ├── x.cc │ │ │ └── z.cc │ │ ├── additional-deps.cc │ │ ├── additional-deps.gyp │ │ ├── additional-options.gyp │ │ ├── aslr.gyp │ │ ├── b │ │ │ └── y.cc │ │ ├── base-address.gyp │ │ ├── debug-info.gyp │ │ ├── deffile-multiple.gyp │ │ ├── deffile.cc │ │ ├── deffile.def │ │ ├── deffile.gyp │ │ ├── delay-load-dlls.gyp │ │ ├── delay-load.cc │ │ ├── embed-manifest.gyp │ │ ├── enable-uac.gyp │ │ ├── entrypointsymbol.cc │ │ ├── entrypointsymbol.gyp │ │ ├── extra.manifest │ │ ├── extra2.manifest │ │ ├── fixed-base.gyp │ │ ├── force-symbol-reference.gyp │ │ ├── generate-manifest.gyp │ │ ├── hello.cc │ │ ├── incremental.gyp │ │ ├── inline_test.cc │ │ ├── inline_test.h │ │ ├── inline_test_main.cc │ │ ├── large-address-aware.gyp │ │ ├── library-adjust.cc │ │ ├── library-adjust.gyp │ │ ├── library-directories-define.cc │ │ ├── library-directories-reference.cc │ │ ├── library-directories.gyp │ │ ├── link-ordering.gyp │ │ ├── link-warning.cc │ │ ├── ltcg.gyp │ │ ├── main-crt.c │ │ ├── manifest-in-comment.cc │ │ ├── mapfile.cc │ │ ├── mapfile.gyp │ │ ├── no-default-libs.cc │ │ ├── no-default-libs.gyp │ │ ├── nodefaultlib.cc │ │ ├── nodefaultlib.gyp │ │ ├── nxcompat.gyp │ │ ├── opt-icf.cc │ │ ├── opt-icf.gyp │ │ ├── opt-ref.cc │ │ ├── opt-ref.gyp │ │ ├── outputfile.gyp │ │ ├── pdb-output.gyp │ │ ├── pgo.gyp │ │ ├── profile.gyp │ │ ├── program-database.gyp │ │ ├── safeseh.gyp │ │ ├── safeseh_hello.cc │ │ ├── safeseh_zero.asm │ │ ├── safeseh_zero64.asm │ │ ├── stacksize.gyp │ │ ├── subdir │ │ │ └── library.gyp │ │ ├── subsystem-windows.cc │ │ ├── subsystem.gyp │ │ ├── target-machine.gyp │ │ ├── tsaware.gyp │ │ ├── unsupported-manifest.gyp │ │ ├── update_pgd.py │ │ ├── warn-as-error.gyp │ │ ├── x.cc │ │ ├── y.cc │ │ └── z.cc │ ├── long-command-line │ │ ├── function.cc │ │ ├── hello.cc │ │ └── long-command-line.gyp │ ├── ml-safeseh │ │ ├── a.asm │ │ ├── hello.cc │ │ └── ml-safeseh.gyp │ ├── precompiled │ │ ├── gyptest-all.py │ │ ├── hello.c │ │ ├── hello.gyp │ │ ├── hello2.c │ │ └── precomp.c │ ├── rc-build │ │ ├── Resource.h │ │ ├── hello.cpp │ │ ├── hello.gyp │ │ ├── hello.h │ │ ├── hello.ico │ │ ├── hello.rc │ │ ├── hello3.rc │ │ ├── small.ico │ │ ├── subdir │ │ │ ├── hello2.rc │ │ │ └── include.h │ │ └── targetver.h │ ├── shard │ │ ├── hello.cc │ │ ├── hello1.cc │ │ ├── hello2.cc │ │ ├── hello3.cc │ │ ├── hello4.cc │ │ ├── shard.gyp │ │ └── shard_ref.gyp │ ├── system-include │ │ ├── bar │ │ │ └── header.h │ │ ├── common │ │ │ └── commonheader.h │ │ ├── foo │ │ │ └── header.h │ │ ├── main.cc │ │ └── test.gyp │ ├── uldi │ │ ├── a.cc │ │ ├── b.cc │ │ ├── dll.cc │ │ ├── exe.cc │ │ ├── main.cc │ │ ├── uldi-depending-on-module.gyp │ │ └── uldi.gyp │ ├── vs-macros │ │ ├── as.py │ │ ├── containing-gyp.gyp │ │ ├── do_stuff.py │ │ ├── hello.cc │ │ ├── input-output-macros.gyp │ │ ├── input.S │ │ ├── projectname.gyp │ │ ├── stuff.blah │ │ ├── targetext.gyp │ │ ├── targetfilename.gyp │ │ ├── targetname.gyp │ │ ├── targetpath.gyp │ │ ├── test_exists.py │ │ └── vcinstalldir.gyp │ ├── win-driver-target-type │ │ ├── win-driver-target-type.c │ │ ├── win-driver-target-type.gyp │ │ ├── win-driver-target-type.h │ │ └── win-driver-target-type.rc │ ├── win-tool │ │ ├── copies_readonly_files.gyp │ │ └── gyptest-win-tool-handles-readonly-files.py │ ├── winrt-app-type-revision │ │ ├── dllmain.cc │ │ └── winrt-app-type-revision.gyp │ └── winrt-target-platform-version │ │ ├── dllmain.cc │ │ └── winrt-target-platform-version.gyp └── xcode-ninja │ └── list_excluded │ ├── gyptest-all.py │ ├── hello.cpp │ ├── hello_exclude.gyp │ └── hello_excluded.cpp ├── testlib ├── README.txt ├── SConsLib │ ├── TestCmd.py │ ├── TestCommon.py │ ├── TestUnit │ │ ├── __init__.py │ │ ├── cli.py │ │ └── taprunner.py │ └── __init__.py └── TestGyp.py └── tools ├── README ├── Xcode ├── README └── Specifications │ ├── gyp.pbfilespec │ └── gyp.xclangspec ├── emacs ├── README ├── gyp-tests.el ├── gyp.el ├── run-unit-tests.sh └── testdata │ ├── media.gyp │ └── media.gyp.fontified ├── graphviz.py ├── pretty_gyp.py ├── pretty_sln.py ├── pretty_vcproj.py └── vssetup.powershell ├── LICENSE.txt ├── Microsoft.VisualStudio.Setup.PowerShell.dll ├── VSQuery.ps1 ├── VSSetup.psd1 ├── VSSetup.types.ps1xml └── about_VSSetup.help.txt /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | /out/ 3 | /.venv/ 4 | *.tests 5 | -------------------------------------------------------------------------------- /Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | url = "https://pypi.org/simple" 3 | verify_ssl = true 4 | name = "pypi" 5 | 6 | [dev-packages] 7 | flake8 = "*" 8 | pywin32 = { version = "*", sys_platform = "=='win32'" } 9 | 10 | [packages] 11 | 12 | [scripts] 13 | lint = "flake8 . --count --show-source --statistics" 14 | test = "python gyptest.py -a" 15 | -------------------------------------------------------------------------------- /gyp/generator/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/gyp/generator/__init__.py -------------------------------------------------------------------------------- /gyp/lib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/gyp/lib/__init__.py -------------------------------------------------------------------------------- /gyp/unit_tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/gyp/unit_tests/__init__.py -------------------------------------------------------------------------------- /gyp_main.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | import sys 3 | import gyp 4 | 5 | if __name__ == '__main__': 6 | sys.exit(gyp.script_main()) 7 | -------------------------------------------------------------------------------- /test/actions/bare/src/bare.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 8 | 9 | f = open(sys.argv[1], 'w') 10 | f.write('Hello from bare.py\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /test/actions/depfile/input.txt: -------------------------------------------------------------------------------- 1 | input 2 | -------------------------------------------------------------------------------- /test/actions/e2e/generated-header/action.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2013 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 | import sys 8 | 9 | outfile = sys.argv[1] 10 | open(outfile, 'w').write('const char kFoo[] = "%s";' % sys.argv[2]) 11 | -------------------------------------------------------------------------------- /test/actions/e2e/generated-header/main.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "MyHeader.h" 4 | 5 | int main() { 6 | printf("%s\n", kFoo); 7 | } 8 | -------------------------------------------------------------------------------- /test/actions/e2e/src/subdir1/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void prog1(void); 4 | extern void prog2(void); 5 | 6 | int main(void) 7 | { 8 | printf("Hello from program.c\n"); 9 | prog1(); 10 | prog2(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/actions/e2e/src/subdir2/make-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 8 | 9 | contents = "Hello from make-file.py\n" 10 | 11 | open(sys.argv[1], 'w').write(contents) 12 | -------------------------------------------------------------------------------- /test/actions/multiple/src/copyfile.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2011 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 | 6 | import shutil 7 | import sys 8 | 9 | shutil.copyfile(sys.argv[1], sys.argv[2]) 10 | -------------------------------------------------------------------------------- /test/actions/multiple/src/foo.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 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 | */ 6 | 7 | #include 8 | 9 | void foo(void) { 10 | printf("foo\n"); 11 | } 12 | -------------------------------------------------------------------------------- /test/actions/multiple/src/input.txt: -------------------------------------------------------------------------------- 1 | hello there 2 | -------------------------------------------------------------------------------- /test/actions/none/src/fake_cross.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 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 | 6 | 7 | import sys 8 | 9 | fh = open(sys.argv[-1], 'w') 10 | for filename in sys.argv[1:-1]: 11 | fh.write(open(filename).read()) 12 | fh.close() 13 | -------------------------------------------------------------------------------- /test/actions/none/src/foo.cc: -------------------------------------------------------------------------------- 1 | foo.cc 2 | -------------------------------------------------------------------------------- /test/actions/subdir/src/make-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 8 | 9 | contents = 'Hello from make-file.py\n' 10 | 11 | open(sys.argv[1], 'w').write(contents) 12 | -------------------------------------------------------------------------------- /test/actions/subdir/src/subdir/make-subdir-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 8 | 9 | contents = 'Hello from make-subdir-file.py\n' 10 | 11 | open(sys.argv[1], 'w').write(contents) 12 | -------------------------------------------------------------------------------- /test/additional-targets/src/all.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'all_targets', 9 | 'type': 'none', 10 | 'dependencies': ['dir1/actions.gyp:*'], 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /test/additional-targets/src/dir1/emit.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 8 | 9 | f = open(sys.argv[1], 'w') 10 | f.write('Hello from emit.py\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /test/additional-targets/src/dir1/lib1.c: -------------------------------------------------------------------------------- 1 | #ifdef _WIN32 2 | __declspec(dllexport) 3 | #endif 4 | int func1(void) { 5 | return 42; 6 | } 7 | -------------------------------------------------------------------------------- /test/analyzer/common.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 Google Inc. 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 | } 7 | -------------------------------------------------------------------------------- /test/analyzer/subdir2/subdir.includes.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 Google Inc. 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 | 'sources': [ 7 | 'd.cc' 8 | ], 9 | } 10 | -------------------------------------------------------------------------------- /test/analyzer/test2.includes.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 Google Inc. 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 | 'sources': [ 7 | 'a.cc', 8 | 'b.cc' 9 | ], 10 | 'includes': [ 11 | 'test2.includes.includes.gypi', 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /test/analyzer/test2.includes.includes.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 Google Inc. 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 | 'sources': [ 7 | 'c.cc' 8 | ], 9 | } 10 | -------------------------------------------------------------------------------- /test/arflags/lib.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/arflags/lib.cc -------------------------------------------------------------------------------- /test/arflags/test.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'lib', 5 | 'type': 'static_library', 6 | 'sources': ['lib.cc'], 7 | 'arflags': ['--nonexistent'], 8 | }, 9 | ], 10 | } 11 | -------------------------------------------------------------------------------- /test/assembly/src/as.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: Mock windows assembler. 3 | cl /MD /c %1 /Fo"%2" 4 | 5 | -------------------------------------------------------------------------------- /test/assembly/src/lib1.S: -------------------------------------------------------------------------------- 1 | #if PLATFORM_WINDOWS || PLATFORM_MAC 2 | # define IDENTIFIER(n) _##n 3 | #else /* Linux */ 4 | # define IDENTIFIER(n) n 5 | #endif 6 | 7 | .globl IDENTIFIER(lib1_function) 8 | IDENTIFIER(lib1_function): 9 | #if !defined(PLATFORM_ANDROID) 10 | movl $42, %eax 11 | ret 12 | #else /* Android (assuming ARM) */ 13 | mov r0, #42 14 | bx lr 15 | #endif 16 | -------------------------------------------------------------------------------- /test/assembly/src/lib1.c: -------------------------------------------------------------------------------- 1 | int lib1_function(void) { 2 | return 42; 3 | } 4 | -------------------------------------------------------------------------------- /test/assembly/src/override_asm.asm: -------------------------------------------------------------------------------- 1 | ; Copyright (c) 2012 Google Inc. 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 | ; This is a placeholder. It should not be referenced if overrides work 6 | ; correctly. 7 | 8 | Bad stuff that shouldn't assemble. 9 | -------------------------------------------------------------------------------- /test/assembly/src/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern int lib1_function(void); 4 | 5 | int main(void) 6 | { 7 | fprintf(stdout, "Hello from program.c\n"); 8 | fflush(stdout); 9 | fprintf(stdout, "Got %d.\n", lib1_function()); 10 | fflush(stdout); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/build-option/hello.c: -------------------------------------------------------------------------------- 1 | /* 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 | */ 6 | 7 | #include 8 | 9 | int main(void) 10 | { 11 | printf("Hello, world!\n"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /test/build-option/hello.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'hello', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'hello.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /test/builddir/src/func1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func1(void) 4 | { 5 | printf("Hello from func1.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/builddir/src/func2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func2(void) 4 | { 5 | printf("Hello from func2.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/builddir/src/func3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func3(void) 4 | { 5 | printf("Hello from func3.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/builddir/src/func4.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func4(void) 4 | { 5 | printf("Hello from func4.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/builddir/src/func5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func5(void) 4 | { 5 | printf("Hello from func5.c\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/builddir/src/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func1(void); 4 | 5 | int main(void) 6 | { 7 | printf("Hello from prog1.c\n"); 8 | func1(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/builddir/src/subdir2/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func2(void); 4 | 5 | int main(void) 6 | { 7 | printf("Hello from subdir2/prog2.c\n"); 8 | func2(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/builddir/src/subdir2/subdir3/prog3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func3(void); 4 | 5 | int main(void) 6 | { 7 | printf("Hello from subdir2/subdir3/prog3.c\n"); 8 | func3(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/builddir/src/subdir2/subdir3/subdir4/prog4.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func4(void); 4 | 5 | int main(void) 6 | { 7 | printf("Hello from subdir2/subdir3/subdir4/prog4.c\n"); 8 | func4(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func5(void); 4 | 5 | int main(void) 6 | { 7 | printf("Hello from subdir2/subdir3/subdir4/subdir5/prog5.c\n"); 8 | func5(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/cflags/cflags.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 Google Inc. 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 | #include 6 | 7 | int main(void) 8 | { 9 | #ifdef FOO 10 | printf("FOO defined\n"); 11 | #else 12 | printf("FOO not defined\n"); 13 | #endif 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /test/compilable/src/lib1.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "lib1.hpp" 3 | 4 | void lib1_function(void) { 5 | fprintf(stdout, "Hello from lib1.c\n"); 6 | fflush(stdout); 7 | } 8 | -------------------------------------------------------------------------------- /test/compilable/src/lib1.hpp: -------------------------------------------------------------------------------- 1 | #ifndef _lib1_hpp 2 | #define _lib1_hpp 3 | 4 | extern void lib1_function(void); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /test/compilable/src/program.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "lib1.hpp" 3 | 4 | int main(void) { 5 | fprintf(stdout, "Hello from program.c\n"); 6 | fflush(stdout); 7 | lib1_function(); 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /test/compiler-override/cxxtest.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // Deliberate C syntax error as this file should never be passed to 6 | // the actual compiler 7 | #error Should not be passed to a real compiler 8 | -------------------------------------------------------------------------------- /test/compiler-override/my_cc.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 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 | from __future__ import print_function 6 | import sys 7 | print(sys.argv) 8 | -------------------------------------------------------------------------------- /test/compiler-override/my_cxx.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 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 | from __future__ import print_function 6 | import sys 7 | print(sys.argv) 8 | -------------------------------------------------------------------------------- /test/compiler-override/my_ld.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 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 | from __future__ import print_function 6 | import sys 7 | print(sys.argv) 8 | -------------------------------------------------------------------------------- /test/compiler-override/my_nm.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2014 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 | from __future__ import print_function 6 | import sys 7 | print(sys.argv) 8 | with open('RAN_MY_NM', 'w') as f: 9 | f.write('RAN_MY_NM') 10 | -------------------------------------------------------------------------------- /test/compiler-override/my_readelf.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2014 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 | from __future__ import print_function 6 | import sys 7 | print(sys.argv) 8 | with open('RAN_MY_READELF', 'w') as f: 9 | f.write('RAN_MY_READELF') 10 | -------------------------------------------------------------------------------- /test/compiler-override/test.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // Deliberate C syntax error as this file should never be passed to 6 | // the actual compiler 7 | #error Should not be passed to a real compiler 8 | -------------------------------------------------------------------------------- /test/conditions/elseif/program.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #include 6 | 7 | int main() { 8 | printf("%s\n", FOO); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/configurations/arm64/configurations.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) { 4 | printf("Hello ARM64\n"); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /test/configurations/basics/configurations.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | #ifdef FOO 6 | printf("Foo configuration\n"); 7 | #endif 8 | #ifdef DEBUG 9 | printf("Debug configuration\n"); 10 | #endif 11 | #ifdef RELEASE 12 | printf("Release configuration\n"); 13 | #endif 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /test/configurations/target_platform/front.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | const char *message(void); 4 | 5 | int main(void) { 6 | printf("%s\n", message()); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /test/configurations/target_platform/left.c: -------------------------------------------------------------------------------- 1 | const char *message(void) { 2 | return "left"; 3 | } 4 | -------------------------------------------------------------------------------- /test/configurations/target_platform/right.c: -------------------------------------------------------------------------------- 1 | const char *message(void) { 2 | return "right"; 3 | } 4 | -------------------------------------------------------------------------------- /test/configurations/x64/configurations.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) { 4 | if (sizeof(void*) == 4) { 5 | printf("Running Win32\n"); 6 | } else if (sizeof(void*) == 8) { 7 | printf("Running x64\n"); 8 | } else { 9 | printf("Unexpected platform\n"); 10 | } 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/copies/src/directory/file3: -------------------------------------------------------------------------------- 1 | file3 contents 2 | -------------------------------------------------------------------------------- /test/copies/src/directory/file4: -------------------------------------------------------------------------------- 1 | file4 contents 2 | -------------------------------------------------------------------------------- /test/copies/src/directory/subdir/file5: -------------------------------------------------------------------------------- 1 | file5 contents 2 | -------------------------------------------------------------------------------- /test/copies/src/executable-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo echo echo echo cho ho o o 4 | -------------------------------------------------------------------------------- /test/copies/src/file1: -------------------------------------------------------------------------------- 1 | file1 contents 2 | -------------------------------------------------------------------------------- /test/copies/src/file2: -------------------------------------------------------------------------------- 1 | file2 contents 2 | -------------------------------------------------------------------------------- /test/copies/src/parentdir/subdir/file6: -------------------------------------------------------------------------------- 1 | file6 contents 2 | -------------------------------------------------------------------------------- /test/custom-generator/test.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'exe', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'main.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /test/cxxflags/cxxflags.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 Google Inc. 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 | #include 6 | 7 | int main(void) 8 | { 9 | #ifdef ABC 10 | printf("With define\n"); 11 | #else 12 | printf("No define\n"); 13 | #endif 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /test/cxxflags/cxxflags.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2010 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'cxxflags', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'cxxflags.cc', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /test/defines-escaping/defines-escaping.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2010 Google Inc. 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 | #include 6 | 7 | int main(void) 8 | { 9 | printf(TEST_FORMAT, TEST_ARGS); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/dependencies/a.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | extern int funcB(); 6 | 7 | int funcA() { 8 | return funcB(); 9 | } 10 | -------------------------------------------------------------------------------- /test/dependencies/adso/write_args.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright 2015 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 | import sys 8 | 9 | f = open(sys.argv[1], 'w') 10 | f.write(' '.join(sys.argv[2:])) 11 | f.close() 12 | -------------------------------------------------------------------------------- /test/dependencies/b/b.c: -------------------------------------------------------------------------------- 1 | int funcB() { 2 | return 2; 3 | } 4 | -------------------------------------------------------------------------------- /test/dependencies/b/b3.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 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 | */ 6 | 7 | int funcB() { 8 | return 3; 9 | } 10 | -------------------------------------------------------------------------------- /test/dependencies/c/c.c: -------------------------------------------------------------------------------- 1 | int funcC() { 2 | return 3 3 | // Intentional syntax error. This file should never be compiled, so this 4 | // shouldn't be a problem. 5 | -------------------------------------------------------------------------------- /test/dependencies/c/d.c: -------------------------------------------------------------------------------- 1 | int funcD() { 2 | return 4; 3 | } 4 | -------------------------------------------------------------------------------- /test/dependencies/double_dependent.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'double_dependent', 9 | 'type': 'none', 10 | }, 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /test/dependencies/main.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 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 | */ 6 | 7 | #include 8 | 9 | extern int funcA(); 10 | 11 | int main() { 12 | printf("%d\n", funcA()); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /test/dependencies/module-dep/a.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | int some_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/dependencies/module-dep/dll.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | #if defined(_MSC_VER) 6 | __declspec(dllexport) 7 | #endif 8 | void SomeFunction() { 9 | } 10 | -------------------------------------------------------------------------------- /test/dependencies/module-dep/exe.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/dependency-copy/src/file1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from file1.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/dependency-copy/src/file2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from file2.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/determinism/main.cc: -------------------------------------------------------------------------------- 1 | extern int foo(); 2 | 3 | int main() { 4 | return foo(); 5 | } 6 | -------------------------------------------------------------------------------- /test/determinism/rule.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2017 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 | 6 | from __future__ import print_function 7 | 8 | print('Hello World') 9 | -------------------------------------------------------------------------------- /test/determinism/solib.cc: -------------------------------------------------------------------------------- 1 | #ifdef _MSC_VER 2 | __declspec(dllexport) 3 | #else 4 | __attribute__((visibility("default"))) 5 | #endif 6 | int foo() { 7 | return 42; 8 | } 9 | -------------------------------------------------------------------------------- /test/empty-target/empty-target.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'empty_target', 9 | 'type': 'none', 10 | }, 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /test/errors/duplicate_basenames.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'foo', 9 | 'type': 'static_library', 10 | 'sources': ['foo.c', 'foo.cc'], 11 | }, 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /test/errors/duplicate_node.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 Google Inc. 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 | 'targets': [ 7 | { 'target_name' : 'foo', 'type': 'executable' }, 8 | ], 9 | 'targets': [ 10 | { 'target_name' : 'bar', 'type': 'executable' }, 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /test/errors/duplicate_targets.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'foo' 9 | }, 10 | { 11 | 'target_name': 'foo' 12 | }, 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /test/errors/error_command.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'foo', 9 | 'type': ' 6 | 7 | int func1(void) { 8 | return 42; 9 | } 10 | 11 | int main(void) { 12 | printf("Hello, world!\n"); 13 | printf("%d\n", func1()); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /test/external-cross-compile/src/bogus1.cc: -------------------------------------------------------------------------------- 1 | From bogus1.cc 2 | -------------------------------------------------------------------------------- /test/external-cross-compile/src/bogus2.c: -------------------------------------------------------------------------------- 1 | From bogus2.c 2 | -------------------------------------------------------------------------------- /test/external-cross-compile/src/test1.cc: -------------------------------------------------------------------------------- 1 | From test1.cc 2 | -------------------------------------------------------------------------------- /test/external-cross-compile/src/test2.c: -------------------------------------------------------------------------------- 1 | From test2.c 2 | -------------------------------------------------------------------------------- /test/external-cross-compile/src/test3.cc: -------------------------------------------------------------------------------- 1 | From test3.cc 2 | -------------------------------------------------------------------------------- /test/external-cross-compile/src/test4.c: -------------------------------------------------------------------------------- 1 | From test4.c 2 | -------------------------------------------------------------------------------- /test/generator-output/actions/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/actions/subdir1/actions-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/actions/subdir1/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/actions/subdir1/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void prog1(void); 4 | extern void prog2(void); 5 | 6 | int main(void) 7 | { 8 | printf("Hello from program.c\n"); 9 | prog1(); 10 | prog2(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/generator-output/actions/subdir2/actions-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/actions/subdir2/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/actions/subdir2/make-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 8 | 9 | contents = "Hello from make-file.py\n" 10 | 11 | open(sys.argv[1], 'w').write(contents) 12 | -------------------------------------------------------------------------------- /test/generator-output/copies/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/copies/copies-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/copies/file1: -------------------------------------------------------------------------------- 1 | file1 contents 2 | -------------------------------------------------------------------------------- /test/generator-output/copies/file2: -------------------------------------------------------------------------------- 1 | file2 contents 2 | -------------------------------------------------------------------------------- /test/generator-output/copies/subdir/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/copies/subdir/copies-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/copies/subdir/file3: -------------------------------------------------------------------------------- 1 | file3 contents 2 | -------------------------------------------------------------------------------- /test/generator-output/copies/subdir/file4: -------------------------------------------------------------------------------- 1 | file4 contents 2 | -------------------------------------------------------------------------------- /test/generator-output/mac-bundle/app.order: -------------------------------------------------------------------------------- 1 | _main 2 | -------------------------------------------------------------------------------- /test/generator-output/mac-bundle/header.h: -------------------------------------------------------------------------------- 1 | int f(); 2 | -------------------------------------------------------------------------------- /test/generator-output/mac-bundle/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/generator-output/mac-bundle/resource.sb: -------------------------------------------------------------------------------- 1 | A text file. 2 | -------------------------------------------------------------------------------- /test/generator-output/rules/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/rules/copy-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 8 | 9 | contents = open(sys.argv[1], 'r').read() 10 | open(sys.argv[2], 'w').write(contents) 11 | 12 | sys.exit(0) 13 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir1/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir1/define3.in0: -------------------------------------------------------------------------------- 1 | #define STRING3 "Hello from define3.in0\n" 2 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir1/define4.in0: -------------------------------------------------------------------------------- 1 | #define STRING4 "Hello from define4.in0\n" 2 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir1/function1.in1: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void function1(void) 4 | { 5 | printf("Hello from function1.in1\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir1/function2.in1: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void function2(void) 4 | { 5 | printf("Hello from function2.in1\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir2/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir2/file1.in0: -------------------------------------------------------------------------------- 1 | Hello from file1.in0 2 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir2/file2.in0: -------------------------------------------------------------------------------- 1 | Hello from file2.in0 2 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir2/file3.in1: -------------------------------------------------------------------------------- 1 | Hello from file3.in1 2 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir2/file4.in1: -------------------------------------------------------------------------------- 1 | Hello from file4.in1 2 | -------------------------------------------------------------------------------- /test/generator-output/rules/subdir2/rules-out/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/src/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/src/inc.h: -------------------------------------------------------------------------------- 1 | #define INC_STRING "inc.h" 2 | -------------------------------------------------------------------------------- /test/generator-output/src/inc1/include1.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE1_STRING "inc1/include1.h" 2 | -------------------------------------------------------------------------------- /test/generator-output/src/subdir2/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/src/subdir2/deeper/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/src/subdir2/deeper/deeper.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from deeper.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/generator-output/src/subdir2/deeper/deeper.h: -------------------------------------------------------------------------------- 1 | #define DEEPER_STRING "subdir2/deeper/deeper.h" 2 | -------------------------------------------------------------------------------- /test/generator-output/src/subdir2/inc2/include2.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE2_STRING "inc2/include2.h" 2 | -------------------------------------------------------------------------------- /test/generator-output/src/subdir3/build/README.txt: -------------------------------------------------------------------------------- 1 | A place-holder for this Xcode build output directory, so that the 2 | test script can verify that .xcodeproj files are not created in 3 | their normal location by making the src/ read-only, and then 4 | selectively making this build directory writable. 5 | -------------------------------------------------------------------------------- /test/generator-output/src/subdir3/inc3/include3.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE3_STRING "inc3/include3.h" 2 | -------------------------------------------------------------------------------- /test/gyp-defines/echo.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 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 | import sys 8 | 9 | f = open(sys.argv[2], 'w+') 10 | f.write(sys.argv[1]) 11 | f.close() 12 | -------------------------------------------------------------------------------- /test/hard_dependency/src/a.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #include "a.h" 6 | 7 | int funcA() { 8 | return 42; 9 | } 10 | -------------------------------------------------------------------------------- /test/hard_dependency/src/a.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | #ifndef A_H_ 6 | #define A_H_ 7 | 8 | #include "generated.h" 9 | 10 | int funcA(); 11 | 12 | #endif // A_H_ 13 | -------------------------------------------------------------------------------- /test/hard_dependency/src/b.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #include "a.h" 6 | 7 | int funcB() { 8 | return funcA(); 9 | } 10 | -------------------------------------------------------------------------------- /test/hard_dependency/src/b.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #ifndef B_H_ 6 | #define B_H_ 7 | 8 | #include "a.h" 9 | 10 | int funcB(); 11 | 12 | #endif // B_H_ 13 | -------------------------------------------------------------------------------- /test/hard_dependency/src/c.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #include "b.h" 6 | #include "c.h" 7 | 8 | int funcC() { 9 | return funcB(); 10 | } 11 | -------------------------------------------------------------------------------- /test/hard_dependency/src/c.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #ifndef C_H_ 6 | #define C_H_ 7 | 8 | int funcC(); 9 | 10 | #endif // C_H_ 11 | -------------------------------------------------------------------------------- /test/hard_dependency/src/d.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | #include "c.h" 6 | 7 | int funcD() { 8 | return funcC(); 9 | } 10 | -------------------------------------------------------------------------------- /test/hard_dependency/src/emit.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2011 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 | import sys 8 | 9 | f = open(sys.argv[1], 'w') 10 | f.write('/* Hello World */\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /test/hello/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | #include 6 | 7 | int main(void) 8 | { 9 | printf("Hello, world!\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/hello/hello.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'hello', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'hello.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /test/hello/hello2.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | #include 6 | 7 | int main(void) 8 | { 9 | printf("Hello, two!\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/hello/hello2.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'hello', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'hello2.c', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /test/home_dot_gyp/home/.gyp/include.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'variables': { 3 | 'foo': '"fromhome"', 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/home_dot_gyp/home2/.gyp/include.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'variables': { 3 | 'foo': '"fromhome2"', 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/home_dot_gyp/home2/.gyp_new/include.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'variables': { 3 | 'foo': '"fromhome3"', 4 | }, 5 | } 6 | -------------------------------------------------------------------------------- /test/home_dot_gyp/src/printfoo.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("FOO is %s\n", FOO); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/include_dirs/src/inc.h: -------------------------------------------------------------------------------- 1 | #define INC_STRING "inc.h" 2 | -------------------------------------------------------------------------------- /test/include_dirs/src/inc1/include1.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE1_STRING "include1.h" 2 | -------------------------------------------------------------------------------- /test/include_dirs/src/shadow1/shadow.h: -------------------------------------------------------------------------------- 1 | #define SHADOW_STRING "shadow1/shadow.h" 2 | -------------------------------------------------------------------------------- /test/include_dirs/src/shadow2/shadow.h: -------------------------------------------------------------------------------- 1 | #define SHADOW_STRING "shadow2/shadow.h" 2 | -------------------------------------------------------------------------------- /test/include_dirs/src/subdir/inc.h: -------------------------------------------------------------------------------- 1 | #define INC_STRING "subdir/inc.h" 2 | -------------------------------------------------------------------------------- /test/include_dirs/src/subdir/inc2/include2.h: -------------------------------------------------------------------------------- 1 | #define INCLUDE2_STRING "subdir/inc2/include2.h" 2 | -------------------------------------------------------------------------------- /test/intermediate_dir/src/shared_infile.txt: -------------------------------------------------------------------------------- 1 | dummy input 2 | -------------------------------------------------------------------------------- /test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | NSHumanReadableCopyright = "Copyright ©2011 Google Inc." 4 | -------------------------------------------------------------------------------- /test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | NSHumanReadableCopyright = "Copyright ©2011 Google Inc."; 4 | -------------------------------------------------------------------------------- /test/ios/app-bundle/TestApp/English.lproj/LanguageMap.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | en 6 | en 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png -------------------------------------------------------------------------------- /test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png -------------------------------------------------------------------------------- /test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/ios/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png -------------------------------------------------------------------------------- /test/ios/app-bundle/TestApp/only-compile-in-32-bits.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #if defined(__LP64__) 6 | # error 64-bit build 7 | #endif 8 | -------------------------------------------------------------------------------- /test/ios/app-bundle/TestApp/only-compile-in-64-bits.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #if !defined(__LP64__) 6 | # error 32-bit build 7 | #endif 8 | -------------------------------------------------------------------------------- /test/ios/app-bundle/tool_main.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/empty.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file0: -------------------------------------------------------------------------------- 1 | file0 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file1: -------------------------------------------------------------------------------- 1 | file1 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file10: -------------------------------------------------------------------------------- 1 | file10 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file11: -------------------------------------------------------------------------------- 1 | file11 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file2: -------------------------------------------------------------------------------- 1 | file2 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file3: -------------------------------------------------------------------------------- 1 | file3 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file4: -------------------------------------------------------------------------------- 1 | file4 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file5: -------------------------------------------------------------------------------- 1 | file5 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file6: -------------------------------------------------------------------------------- 1 | file6 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file7: -------------------------------------------------------------------------------- 1 | file7 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file8: -------------------------------------------------------------------------------- 1 | file8 contents 2 | -------------------------------------------------------------------------------- /test/ios/copies-with-xcode-envvars/file9: -------------------------------------------------------------------------------- 1 | file9 contents 2 | -------------------------------------------------------------------------------- /test/ios/extension/ActionExtension/ActionViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #import 6 | 7 | @interface ActionViewController : UIViewController 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /test/ios/extension/ExtensionContainer/ViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #import 6 | 7 | @interface ViewController : UIViewController 8 | 9 | 10 | @end 11 | 12 | -------------------------------------------------------------------------------- /test/ios/framework/iOSFramework/Thing.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface Thing : NSObject 5 | 6 | + (instancetype)thing; 7 | 8 | - (void)sayHello; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /test/ios/framework/iOSFramework/iOSFramework.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | //! Project version number for iOSFramework. 4 | FOUNDATION_EXPORT double iOSFrameworkVersionNumber; 5 | 6 | //! Project version string for iOSFramework. 7 | FOUNDATION_EXPORT const unsigned char iOSFrameworkVersionString[]; 8 | 9 | #import 10 | -------------------------------------------------------------------------------- /test/ios/watch/WatchContainer/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #import 6 | 7 | @interface AppDelegate : UIResponder 8 | 9 | @property (strong, nonatomic) UIWindow *window; 10 | 11 | @end 12 | 13 | -------------------------------------------------------------------------------- /test/ios/watch/WatchContainer/ViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #import 6 | 7 | @interface ViewController : UIViewController 8 | 9 | 10 | @end 11 | 12 | -------------------------------------------------------------------------------- /test/ios/watch/WatchKitExtension/InterfaceController.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #import 6 | #import 7 | 8 | @interface InterfaceController : WKInterfaceController 9 | @end 10 | 11 | -------------------------------------------------------------------------------- /test/ios/xctests/App/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2015 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 | #import 6 | 7 | @interface AppDelegate : UIResponder 8 | 9 | @property(strong, nonatomic) UIWindow* window; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /test/ios/xctests/App/ViewController.h: -------------------------------------------------------------------------------- 1 | // Copyright 2015 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 | #import 6 | 7 | @interface ViewController : UIViewController 8 | 9 | @end 10 | -------------------------------------------------------------------------------- /test/library/src/lib1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void lib1_function(void) 7 | { 8 | fprintf(stdout, "Hello from lib1.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /test/library/src/lib1_moveable.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void moveable_function(void) 7 | { 8 | fprintf(stdout, "Hello from lib1_moveable.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /test/library/src/lib2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void lib2_function(void) 7 | { 8 | fprintf(stdout, "Hello from lib2.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /test/library/src/lib2_moveable.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void moveable_function(void) 7 | { 8 | fprintf(stdout, "Hello from lib2_moveable.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /test/library/src/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void lib1_function(void); 4 | extern void lib2_function(void); 5 | extern void moveable_function(void); 6 | 7 | int main(void) 8 | { 9 | fprintf(stdout, "Hello from program.c\n"); 10 | fflush(stdout); 11 | lib1_function(); 12 | lib2_function(); 13 | moveable_function(); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /test/library_dirs/subdir/README.txt: -------------------------------------------------------------------------------- 1 | Make things live in a subdirectory, to make sure that DEPTH works correctly. 2 | -------------------------------------------------------------------------------- /test/library_dirs/subdir/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #include 6 | #include "mylib.h" 7 | 8 | int main() { 9 | std::cout << "Hello " << my_foo(99) << std::endl; 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/library_dirs/subdir/mylib.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #include "mylib.h" 6 | 7 | std::string my_foo(int x) { 8 | return std::string("world"); 9 | } 10 | -------------------------------------------------------------------------------- /test/link-dependency/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main() { 4 | void *p = malloc(1); 5 | printf("p: %p\n", p); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/link-dependency/mymalloc.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // The windows ninja generator is expecting an import library to get generated, 4 | // but it doesn't if there are no exports. 5 | #ifdef _MSC_VER 6 | __declspec(dllexport) void foo() {} 7 | #endif 8 | 9 | void *malloc(size_t size) { 10 | (void)size; 11 | return (void*)0xdeadbeef; 12 | } 13 | -------------------------------------------------------------------------------- /test/link-objects/base.c: -------------------------------------------------------------------------------- 1 | void extra(); 2 | 3 | int main(void) { 4 | extra(); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /test/link-objects/extra.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void extra() { 4 | printf("PASS\n"); 5 | } 6 | -------------------------------------------------------------------------------- /test/linux/implicit-rpath/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | -------------------------------------------------------------------------------- /test/linux/implicit-rpath/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/linux/ldflags-duplicates/lib1.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | void foo() { 6 | } 7 | -------------------------------------------------------------------------------- /test/linux/ldflags-duplicates/lib2.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | void bar() { 6 | } 7 | -------------------------------------------------------------------------------- /test/linux/ldflags-duplicates/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/linux/ldflags-from-environment/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/linux/target-rpath/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | -------------------------------------------------------------------------------- /test/linux/target-rpath/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/action-envvars/action/action.sh: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | set -e 6 | 7 | echo 'Test output' > "${BUILT_PRODUCTS_DIR}/result" 8 | echo 'Other output' > "$1" 9 | -------------------------------------------------------------------------------- /test/mac/app-bundle/TestApp/English.lproj/InfoPlist-error.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | NSHumanReadableCopyright = "Copyright ©2011 Google Inc." 4 | -------------------------------------------------------------------------------- /test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | NSHumanReadableCopyright = "Copyright ©2011 Google Inc."; 4 | -------------------------------------------------------------------------------- /test/mac/app-bundle/TestApp/English.lproj/utf-16be.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/app-bundle/TestApp/English.lproj/utf-16be.strings -------------------------------------------------------------------------------- /test/mac/app-bundle/TestApp/English.lproj/utf-16le.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/app-bundle/TestApp/English.lproj/utf-16le.strings -------------------------------------------------------------------------------- /test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain.png -------------------------------------------------------------------------------- /test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@2x.png -------------------------------------------------------------------------------- /test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/app-bundle/TestApp/Images.xcassets/image.imageset/super_sylvain@3x.png -------------------------------------------------------------------------------- /test/mac/app-bundle/TestApp/main.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | #import 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | return NSApplicationMain(argc, (const char **) argv); 10 | } 11 | -------------------------------------------------------------------------------- /test/mac/app-bundle/empty.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/app-bundle/empty.c -------------------------------------------------------------------------------- /test/mac/archs/empty_main.cc: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/archs/file.mm: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /test/mac/archs/file_a.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #include "file_a.h" 6 | 7 | void DependentFunctionA() { 8 | } 9 | -------------------------------------------------------------------------------- /test/mac/archs/file_b.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #include "file_b.h" 6 | 7 | void DependentFunctionB() { 8 | } 9 | -------------------------------------------------------------------------------- /test/mac/archs/file_c.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #include "file_a.h" 6 | #include "file_b.h" 7 | 8 | void PublicFunctionC() { 9 | DependentFunctionA(); 10 | DependentFunctionB(); 11 | } 12 | -------------------------------------------------------------------------------- /test/mac/archs/file_d.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | #include "file_a.h" 6 | #include "file_b.h" 7 | 8 | void PublicFunctionD() { 9 | DependentFunctionA(); 10 | DependentFunctionB(); 11 | } 12 | -------------------------------------------------------------------------------- /test/mac/archs/header.h: -------------------------------------------------------------------------------- 1 | typedef int MyInt; 2 | -------------------------------------------------------------------------------- /test/mac/archs/my_file.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Google Inc. 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 | int x = 1; 5 | -------------------------------------------------------------------------------- /test/mac/archs/my_main_file.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Google Inc. 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 | #include 5 | extern int x; 6 | int main() { 7 | printf("hello, world %d\n", x); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /test/mac/bundle-resources/change.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | tr a-z A-Z < "${1}" > "${2}" 4 | -------------------------------------------------------------------------------- /test/mac/bundle-resources/executable-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo echo echo echo cho ho o o 4 | -------------------------------------------------------------------------------- /test/mac/bundle-resources/secret.txt: -------------------------------------------------------------------------------- 1 | abc 2 | -------------------------------------------------------------------------------- /test/mac/cflags/ccfile.cc: -------------------------------------------------------------------------------- 1 | #ifdef CFLAG 2 | #error CFLAG should not be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/ccfile_withcflags.cc: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/cfile.c: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifdef CCFLAG 6 | #error CCFLAG should not be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/cppfile.cpp: -------------------------------------------------------------------------------- 1 | #ifdef CFLAG 2 | #error CFLAG should not be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/cppfile_withcflags.cpp: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/cxxfile.cxx: -------------------------------------------------------------------------------- 1 | #ifdef CFLAG 2 | #error CFLAG should not be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/cxxfile_withcflags.cxx: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/mfile.m: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifdef CCFLAG 6 | #error CCFLAG should not be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/mmfile.mm: -------------------------------------------------------------------------------- 1 | #ifdef CFLAG 2 | #error CFLAG should not be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/cflags/mmfile_withcflags.mm: -------------------------------------------------------------------------------- 1 | #ifndef CFLAG 2 | #error CFLAG should be set 3 | #endif 4 | 5 | #ifndef CCFLAG 6 | #error CCFLAG should be set 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/clang-cxx-language-standard/c++11.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | static_assert(__cplusplus == 201103L, "wrong c++ standard version"); 6 | 7 | int main() { return 0; } 8 | 9 | -------------------------------------------------------------------------------- /test/mac/clang-cxx-library/libc++.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #include 6 | #ifndef _LIBCPP_VERSION 7 | #error expected std library: libc++ 8 | #endif 9 | 10 | int main() { std::string x; return x.size(); } 11 | 12 | -------------------------------------------------------------------------------- /test/mac/clang-cxx-library/libstdc++.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #include 6 | #ifndef __GLIBCXX__ 7 | #error expected std library: libstdc++ 8 | #endif 9 | 10 | int main() { std::string x; return x.size(); } 11 | 12 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/empty.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file0: -------------------------------------------------------------------------------- 1 | file0 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file1: -------------------------------------------------------------------------------- 1 | file1 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file10: -------------------------------------------------------------------------------- 1 | file10 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file11: -------------------------------------------------------------------------------- 1 | file11 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file2: -------------------------------------------------------------------------------- 1 | file2 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file3: -------------------------------------------------------------------------------- 1 | file3 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file4: -------------------------------------------------------------------------------- 1 | file4 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file5: -------------------------------------------------------------------------------- 1 | file5 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file6: -------------------------------------------------------------------------------- 1 | file6 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file7: -------------------------------------------------------------------------------- 1 | file7 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file8: -------------------------------------------------------------------------------- 1 | file8 contents 2 | -------------------------------------------------------------------------------- /test/mac/copies-with-xcode-envvars/file9: -------------------------------------------------------------------------------- 1 | file9 contents 2 | -------------------------------------------------------------------------------- /test/mac/copy-dylib/empty.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/debuginfo/file.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | void f() {} 6 | int main() {} 7 | -------------------------------------------------------------------------------- /test/mac/depend-on-bundle/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | -------------------------------------------------------------------------------- /test/mac/depend-on-bundle/bundle.c: -------------------------------------------------------------------------------- 1 | int f() { return 42; } 2 | -------------------------------------------------------------------------------- /test/mac/depend-on-bundle/executable.c: -------------------------------------------------------------------------------- 1 | int f(); 2 | int main() { 3 | return f(); 4 | } 5 | -------------------------------------------------------------------------------- /test/mac/framework-headers/myframework.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #import 6 | 7 | @interface TestObject : NSObject 8 | @end 9 | -------------------------------------------------------------------------------- /test/mac/framework-headers/myframework.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #import "myframework.h" 6 | 7 | @implementation TestObject 8 | @end 9 | -------------------------------------------------------------------------------- /test/mac/framework/TestFramework/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /test/mac/framework/TestFramework/ObjCVectorInternal.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | #include 6 | 7 | struct ObjCVectorImp { 8 | std::vector v; 9 | }; 10 | -------------------------------------------------------------------------------- /test/mac/framework/TestFramework/TestFramework_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'TestFramework' target in the 'TestFramework' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /test/mac/framework/empty.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/framework/empty.c -------------------------------------------------------------------------------- /test/mac/global-settings/src/dir1/dir1.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | 'targets': [ 6 | { 7 | 'target_name': 'dir1_target', 8 | 'type': 'none', 9 | }, 10 | ], 11 | } 12 | -------------------------------------------------------------------------------- /test/mac/global-settings/src/dir2/file.txt: -------------------------------------------------------------------------------- 1 | File. 2 | -------------------------------------------------------------------------------- /test/mac/identical-name/proxy/proxy.cc: -------------------------------------------------------------------------------- 1 | // Empty file 2 | 3 | -------------------------------------------------------------------------------- /test/mac/identical-name/proxy/proxy.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'includes': ['../test.gypi'], 3 | 'targets': [{ 4 | 'target_name': 'testlib', 5 | 'type': 'none', 6 | 'dependencies': ['testlib/testlib.gyp:testlib'], 7 | 'sources': ['proxy.cc'], 8 | }], 9 | } 10 | -------------------------------------------------------------------------------- /test/mac/identical-name/proxy/testlib/testlib.cc: -------------------------------------------------------------------------------- 1 | // Empty file 2 | 3 | -------------------------------------------------------------------------------- /test/mac/identical-name/proxy/testlib/testlib.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'includes': ['../../test.gypi'], 3 | 'targets': [{ 4 | 'target_name': 'testlib', 5 | 'type': 'static_library', 6 | 'sources': ['testlib.cc'], 7 | }], 8 | } 9 | -------------------------------------------------------------------------------- /test/mac/identical-name/test-should-fail.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [{ 3 | 'target_name': 'test', 4 | 'type': 'executable', 5 | 'dependencies': [ 6 | 'testlib/testlib.gyp:proxy', 7 | 'proxy/proxy.gyp:testlib', 8 | ], 9 | }], 10 | } 11 | -------------------------------------------------------------------------------- /test/mac/identical-name/test.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'includes': ['test.gypi'], 3 | 'targets': [{ 4 | 'target_name': 'test', 5 | 'type': 'executable', 6 | 'dependencies': [ 7 | 'testlib/testlib.gyp:proxy', 8 | 'proxy/proxy.gyp:testlib', 9 | ], 10 | }], 11 | } -------------------------------------------------------------------------------- /test/mac/identical-name/test.gypi: -------------------------------------------------------------------------------- 1 | { 2 | 'target_defaults': { 3 | 'xcode_settings': { 4 | 'SYMROOT': '<(DEPTH)/$SRCROOT/', 5 | }, 6 | }, 7 | } 8 | -------------------------------------------------------------------------------- /test/mac/identical-name/testlib/main.cc: -------------------------------------------------------------------------------- 1 | int main(int argc, char **argv) { 2 | return 0; 3 | } 4 | -------------------------------------------------------------------------------- /test/mac/identical-name/testlib/void.cc: -------------------------------------------------------------------------------- 1 | // Empty file 2 | 3 | -------------------------------------------------------------------------------- /test/mac/infoplist-process/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/mac/installname/file.c: -------------------------------------------------------------------------------- 1 | int f() { return 0; } 2 | -------------------------------------------------------------------------------- /test/mac/installname/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/ldflags-libtool/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | -------------------------------------------------------------------------------- /test/mac/ldflags/subdirectory/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleSignature 6 | ???? 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/mac/ldflags/subdirectory/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | void g() {} 3 | -------------------------------------------------------------------------------- /test/mac/ldflags/subdirectory/symbol_list.def: -------------------------------------------------------------------------------- 1 | _f 2 | -------------------------------------------------------------------------------- /test/mac/libraries/subdir/README.txt: -------------------------------------------------------------------------------- 1 | Make things live in a subdirectory, to make sure that DEPTH works correctly. 2 | -------------------------------------------------------------------------------- /test/mac/libraries/subdir/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main() { 8 | std::cout << "Hello, world!" << std::endl; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/mac/libraries/subdir/mylib.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int my_foo(int x) { 6 | return x + 1; 7 | } 8 | -------------------------------------------------------------------------------- /test/mac/libtool-zero/mylib.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | int my_foo(int x) { 6 | return x + 1; 7 | } 8 | -------------------------------------------------------------------------------- /test/mac/loadable-module-bundle-product-extension/src.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | int test() { 6 | return 1337; 7 | } 8 | -------------------------------------------------------------------------------- /test/mac/loadable-module/module.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | int SuperFly() { 6 | return 42; 7 | } 8 | 9 | const char* SuperFoo() { 10 | return "Hello World"; 11 | } 12 | -------------------------------------------------------------------------------- /test/mac/lto/asmfile.S: -------------------------------------------------------------------------------- 1 | .globl _asfun 2 | ret 3 | -------------------------------------------------------------------------------- /test/mac/lto/ccfile.cc: -------------------------------------------------------------------------------- 1 | void ccfun() {} 2 | -------------------------------------------------------------------------------- /test/mac/lto/cfile.c: -------------------------------------------------------------------------------- 1 | void cfun() {} 2 | -------------------------------------------------------------------------------- /test/mac/lto/mfile.m: -------------------------------------------------------------------------------- 1 | void mfun() {} 2 | -------------------------------------------------------------------------------- /test/mac/lto/mmfile.mm: -------------------------------------------------------------------------------- 1 | void mmfun() {} 2 | -------------------------------------------------------------------------------- /test/mac/missing-cfbundlesignature/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleExecutable 6 | ${EXECUTABLE_NAME} 7 | CFBundlePackageType 8 | APPL 9 | 10 | 11 | -------------------------------------------------------------------------------- /test/mac/missing-cfbundlesignature/file.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/non-strs-flattened-to-env/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/mac/objc-arc/c-file.c: -------------------------------------------------------------------------------- 1 | #if __has_feature(objc_arc) 2 | #error "C files shouldn't be ARC'd!" 3 | #endif 4 | 5 | void c_fun() {} 6 | 7 | -------------------------------------------------------------------------------- /test/mac/objc-arc/cc-file.cc: -------------------------------------------------------------------------------- 1 | #if __has_feature(objc_arc) 2 | #error "C++ files shouldn't be ARC'd!" 3 | #endif 4 | 5 | void cc_fun() {} 6 | -------------------------------------------------------------------------------- /test/mac/objc-arc/m-file-no-arc.m: -------------------------------------------------------------------------------- 1 | #if __has_feature(objc_arc) 2 | #error "ObjC files without CLANG_ENABLE_OBJC_ARC should not be ARC'd!" 3 | #endif 4 | 5 | void m_fun() {} 6 | -------------------------------------------------------------------------------- /test/mac/objc-arc/m-file.m: -------------------------------------------------------------------------------- 1 | #if !__has_feature(objc_arc) 2 | #error "ObjC files with CLANG_ENABLE_OBJC_ARC should be ARC'd!" 3 | #endif 4 | 5 | void m_fun() {} 6 | -------------------------------------------------------------------------------- /test/mac/objc-arc/mm-file-no-arc.mm: -------------------------------------------------------------------------------- 1 | #if __has_feature(objc_arc) 2 | #error "ObjC++ files without CLANG_ENABLE_OBJC_ARC should not be ARC'd!" 3 | #endif 4 | 5 | void mm_fun() {} 6 | -------------------------------------------------------------------------------- /test/mac/objc-arc/mm-file.mm: -------------------------------------------------------------------------------- 1 | #if !__has_feature(objc_arc) 2 | #error "ObjC++ files with CLANG_ENABLE_OBJC_ARC should be ARC'd!" 3 | #endif 4 | 5 | void mm_fun() {} 6 | -------------------------------------------------------------------------------- /test/mac/objc-gc/c-file.c: -------------------------------------------------------------------------------- 1 | void c_fun() {} 2 | -------------------------------------------------------------------------------- /test/mac/objc-gc/cc-file.cc: -------------------------------------------------------------------------------- 1 | void cc_fun() {} 2 | -------------------------------------------------------------------------------- /test/mac/objc-gc/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | int main() { 4 | printf("gc on: %d\n", [NSGarbageCollector defaultCollector] != NULL); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /test/mac/objc-gc/needs-gc-mm.mm: -------------------------------------------------------------------------------- 1 | void objcpp_fun() { } 2 | -------------------------------------------------------------------------------- /test/mac/objc-gc/needs-gc.m: -------------------------------------------------------------------------------- 1 | void objc_fun() { } 2 | -------------------------------------------------------------------------------- /test/mac/postbuild-copy-bundle/copied.txt: -------------------------------------------------------------------------------- 1 | old copied file 2 | -------------------------------------------------------------------------------- /test/mac/postbuild-copy-bundle/empty.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/postbuild-copy-bundle/empty.c -------------------------------------------------------------------------------- /test/mac/postbuild-copy-bundle/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() {} 5 | -------------------------------------------------------------------------------- /test/mac/postbuild-copy-bundle/postbuild-copy-framework.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 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 | set -e 8 | 9 | rsync -acC --delete "$1" "$2" 10 | -------------------------------------------------------------------------------- /test/mac/postbuild-copy-bundle/resource_file.sb: -------------------------------------------------------------------------------- 1 | This is included in the framework bundle. 2 | -------------------------------------------------------------------------------- /test/mac/postbuild-defaults/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/mac/postbuild-fail/file.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | // That's right, this is copyrighted. 6 | void f() {} 7 | -------------------------------------------------------------------------------- /test/mac/postbuild-fail/postbuild-fail.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/bash 2 | # Copyright (c) 2011 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 | 6 | exit 1 7 | -------------------------------------------------------------------------------- /test/mac/postbuild-fail/touch-dynamic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2011 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 | 6 | set -e 7 | touch "${BUILT_PRODUCTS_DIR}/dynamic_touch" 8 | -------------------------------------------------------------------------------- /test/mac/postbuild-fail/touch-static.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Copyright (c) 2011 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 | 6 | set -e 7 | touch "${BUILT_PRODUCTS_DIR}/static_touch" 8 | -------------------------------------------------------------------------------- /test/mac/postbuild-multiple-configurations/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() {} 5 | -------------------------------------------------------------------------------- /test/mac/postbuild-multiple-configurations/postbuild-touch-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 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 | touch "${BUILT_PRODUCTS_DIR}/postbuild-file" 8 | -------------------------------------------------------------------------------- /test/mac/postbuild-static-library/empty.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | void f() {} 5 | -------------------------------------------------------------------------------- /test/mac/postbuild-static-library/postbuild-touch-file.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 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 | touch "${BUILT_PRODUCTS_DIR}/$1" 8 | -------------------------------------------------------------------------------- /test/mac/postbuilds/copy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cp "$@" 4 | -------------------------------------------------------------------------------- /test/mac/postbuilds/file.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | void f() {} 5 | -------------------------------------------------------------------------------- /test/mac/postbuilds/file_g.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | void g() {} 5 | -------------------------------------------------------------------------------- /test/mac/postbuilds/file_h.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | void h() {} 5 | -------------------------------------------------------------------------------- /test/mac/postbuilds/subdirectory/copied_file.txt: -------------------------------------------------------------------------------- 1 | This file should be copied to the products dir. 2 | -------------------------------------------------------------------------------- /test/mac/prefixheader/file.c: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /test/mac/prefixheader/file.cc: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /test/mac/prefixheader/file.m: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /test/mac/prefixheader/file.mm: -------------------------------------------------------------------------------- 1 | MyInt f() { return 0; } 2 | -------------------------------------------------------------------------------- /test/mac/prefixheader/header.h: -------------------------------------------------------------------------------- 1 | typedef int MyInt; 2 | -------------------------------------------------------------------------------- /test/mac/rebuild/delay-touch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | sleep 1 # mtime resolution is 1 sec on unix. 6 | touch "$1" 7 | -------------------------------------------------------------------------------- /test/mac/rebuild/empty.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/rebuild/empty.c -------------------------------------------------------------------------------- /test/mac/rebuild/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/rpath/file.c: -------------------------------------------------------------------------------- 1 | void f() {} 2 | -------------------------------------------------------------------------------- /test/mac/rpath/main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/sdkroot/file.cc: -------------------------------------------------------------------------------- 1 | #include 2 | using std::map; 3 | 4 | int main() { 5 | } 6 | -------------------------------------------------------------------------------- /test/mac/sourceless-module/empty.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/mac/sourceless-module/empty.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /test/mac/sourceless-module/fun.c: -------------------------------------------------------------------------------- 1 | int f() { return 42; } 2 | -------------------------------------------------------------------------------- /test/mac/strip/strip.saves: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2011 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 | # This file would list symbols that should not be stripped. 6 | -------------------------------------------------------------------------------- /test/mac/strip/subdirectory/nested_file.c: -------------------------------------------------------------------------------- 1 | void nested_f() {} 2 | -------------------------------------------------------------------------------- /test/mac/strip/subdirectory/nested_strip.saves: -------------------------------------------------------------------------------- 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 | # This file would list symbols that should not be stripped. 6 | -------------------------------------------------------------------------------- /test/mac/strip/subdirectory/test_reading_save_file_from_postbuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | test -f ${CHROMIUM_STRIP_SAVE_FILE} 6 | -------------------------------------------------------------------------------- /test/mac/swift-library/file.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public class GypSwiftTest { 4 | let myProperty = false 5 | 6 | init() { 7 | self.myProperty = true 8 | } 9 | } -------------------------------------------------------------------------------- /test/mac/type_envvars/file.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | void f() {} 6 | int main() {} 7 | -------------------------------------------------------------------------------- /test/mac/unicode-settings/file.cc: -------------------------------------------------------------------------------- 1 | int main() { 2 | } 3 | -------------------------------------------------------------------------------- /test/mac/unicode-settings/test_bundle_display_name.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright 2013 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 | test "${BUNDLE_DISPLAY_NAME}" = 'α ' 8 | -------------------------------------------------------------------------------- /test/mac/xcode-env-order/file.ext1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/xcode-env-order/file.ext1 -------------------------------------------------------------------------------- /test/mac/xcode-env-order/file.ext2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/xcode-env-order/file.ext2 -------------------------------------------------------------------------------- /test/mac/xcode-env-order/file.ext3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/xcode-env-order/file.ext3 -------------------------------------------------------------------------------- /test/mac/xcode-env-order/main.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/mac/xcode-gcc/aliasing.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void check(int* h, long* k) { 4 | *h = 1; 5 | *k = 0; 6 | printf("%d\n", *h); 7 | } 8 | 9 | int main(void) { 10 | long k; 11 | check((int*)&k, &k); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /test/mac/xcode-gcc/valid_c.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // This file exists to test that valid C files compile correctly. 6 | 7 | void FunctionInCFile(void) { 8 | } 9 | -------------------------------------------------------------------------------- /test/mac/xcode-gcc/valid_cc.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // This file exists to test that valid C++ files compile correctly. 6 | 7 | void FunctionInCCFile() { 8 | } 9 | -------------------------------------------------------------------------------- /test/mac/xcode-gcc/valid_m.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // This file exists to test that valid Objective-C files compile correctly. 6 | 7 | void FunctionInMFile(void) { 8 | } 9 | -------------------------------------------------------------------------------- /test/mac/xcode-gcc/valid_mm.mm: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // This file exists to test that valid Objective-C++ files compile correctly. 6 | 7 | void FunctionInMMFile() { 8 | } 9 | -------------------------------------------------------------------------------- /test/mac/xcode-gcc/warn_about_missing_newline.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // Important: Don't terminate this file with a newline. 6 | int main() { 7 | return 0; 8 | } -------------------------------------------------------------------------------- /test/mac/xcode-support-actions/source.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/mac/xcode-support-actions/source.c -------------------------------------------------------------------------------- /test/mac/xctest/MyClass.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #import 6 | 7 | @interface MyClass : NSObject 8 | @end 9 | -------------------------------------------------------------------------------- /test/mac/xctest/MyClass.m: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #import "MyClass.h" 6 | 7 | @implementation MyClass 8 | @end 9 | -------------------------------------------------------------------------------- /test/mac/xctest/resource.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /test/mac/xcuitest/MyAppDelegate.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #import 6 | 7 | @interface MyAppDelegate : NSObject 8 | @end 9 | -------------------------------------------------------------------------------- /test/mac/xcuitest/resource.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /test/make/dependencies.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'main', 9 | 'type': 'executable', 10 | 'sources': [ 11 | 'main.cc', 12 | ], 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /test/make/main.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | #include 6 | 7 | #include "main.h" 8 | 9 | int main(void) { 10 | printf("hello world\n"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/make/main.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/make/main.h -------------------------------------------------------------------------------- /test/make/noload/lib/shared.c: -------------------------------------------------------------------------------- 1 | #include "shared.h" 2 | 3 | const char kSharedStr[] = "shared.c"; 4 | -------------------------------------------------------------------------------- /test/make/noload/lib/shared.h: -------------------------------------------------------------------------------- 1 | extern const char kSharedStr[]; 2 | -------------------------------------------------------------------------------- /test/make/noload/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "lib/shared.h" 4 | 5 | int main(void) 6 | { 7 | printf("Hello from %s.\n", kSharedStr); 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /test/make_global_settings/full-toolchain/bar.cc: -------------------------------------------------------------------------------- 1 | #error Not a real source file 2 | -------------------------------------------------------------------------------- /test/make_global_settings/full-toolchain/foo.c: -------------------------------------------------------------------------------- 1 | #error Not a real source file 2 | -------------------------------------------------------------------------------- /test/make_global_settings/full-toolchain/my_nm.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2014 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 | from __future__ import print_function 6 | import sys 7 | print(sys.argv) 8 | with open('RAN_MY_NM', 'w') as f: 9 | f.write('RAN_MY_NM') 10 | -------------------------------------------------------------------------------- /test/many-actions/file0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/many-actions/file0 -------------------------------------------------------------------------------- /test/many-actions/file1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/many-actions/file1 -------------------------------------------------------------------------------- /test/many-actions/file2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/many-actions/file2 -------------------------------------------------------------------------------- /test/many-actions/file3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/many-actions/file3 -------------------------------------------------------------------------------- /test/many-actions/file4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/many-actions/file4 -------------------------------------------------------------------------------- /test/module/src/lib1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void module_main(void) 7 | { 8 | fprintf(stdout, "Hello from lib1.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /test/module/src/lib2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef _WIN32 4 | __declspec(dllexport) 5 | #endif 6 | void module_main(void) 7 | { 8 | fprintf(stdout, "Hello from lib2.c\n"); 9 | fflush(stdout); 10 | } 11 | -------------------------------------------------------------------------------- /test/msvs/buildevents/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | int main() {} 6 | -------------------------------------------------------------------------------- /test/msvs/config_attrs/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main(void) 8 | { 9 | printf("Hello, world!\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/msvs/external_builder/external_builder.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 Google Inc. 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 | import sys 6 | 7 | with open('external_builder.out', 'w') as f: 8 | f.write(' '.join(sys.argv)) 9 | 10 | -------------------------------------------------------------------------------- /test/msvs/external_builder/hello.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main(void) { 8 | printf("Hello, world!\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/msvs/external_builder/hello.z: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 Google Inc. 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 | This file will be passed to the test rule. 6 | 7 | -------------------------------------------------------------------------------- /test/msvs/external_builder/msbuild_action.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 Google Inc. 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 | import sys 6 | 7 | with open('msbuild_action.out', 'w') as f: 8 | f.write(' '.join(sys.argv)) 9 | 10 | -------------------------------------------------------------------------------- /test/msvs/external_builder/msbuild_rule.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 Google Inc. 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 | import sys, os.path 6 | 7 | sys.argv[1] = os.path.basename(sys.argv[1]) 8 | 9 | with open('msbuild_rule.out', 'w') as f: 10 | f.write(' '.join(sys.argv)) 11 | 12 | -------------------------------------------------------------------------------- /test/msvs/list_excluded/hello.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main(void) { 8 | printf("Hello, world!\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/msvs/list_excluded/hello_mac.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int hello2() { 8 | printf("Hello, two!\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/msvs/multiple_actions_error_handling/action_fail.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 Google Inc. 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 | import sys 6 | 7 | sys.exit(1) 8 | -------------------------------------------------------------------------------- /test/msvs/multiple_actions_error_handling/action_succeed.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 Google Inc. 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 | import sys 6 | 7 | sys.exit(0) 8 | -------------------------------------------------------------------------------- /test/msvs/props/AppName.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /test/msvs/props/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main(void) 8 | { 9 | printf("Hello, world!\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/msvs/rules_stdout_stderr/dummy.bar: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 Google Inc. 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 | A dummy file with the .bar extension (used for stderr rule). 6 | -------------------------------------------------------------------------------- /test/msvs/rules_stdout_stderr/dummy.foo: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 Google Inc. 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 | A dummy file with the .foo extension (used for stdout rule). 6 | -------------------------------------------------------------------------------- /test/msvs/rules_stdout_stderr/rule_stderr.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2015 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 | 6 | from __future__ import print_function 7 | import sys 8 | print("This will go to stderr", file=sys.stderr) 9 | -------------------------------------------------------------------------------- /test/msvs/rules_stdout_stderr/rule_stdout.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # Copyright (c) 2015 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 | 6 | from __future__ import print_function 7 | print("This will go to stdout") 8 | -------------------------------------------------------------------------------- /test/msvs/shared_output/hello.c: -------------------------------------------------------------------------------- 1 | /* 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 | */ 6 | 7 | #include 8 | 9 | int main(void) { 10 | printf("Hello, world!\n"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/msvs/shared_output/there/there.c: -------------------------------------------------------------------------------- 1 | /* 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 | */ 6 | 7 | #include 8 | 9 | int main(void) { 10 | printf("Hello, world!\n"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/msvs/uldi2010/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | extern int hello2(); 8 | 9 | int main(void) { 10 | printf("Hello, world!\n"); 11 | hello2(); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /test/msvs/uldi2010/hello2.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int hello2() { 8 | printf("Hello, two!\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/multiple-targets/src/common.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void common(void) 4 | { 5 | printf("hello from common.c\n"); 6 | return; 7 | } 8 | -------------------------------------------------------------------------------- /test/multiple-targets/src/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void common(void); 4 | 5 | int main(void) 6 | { 7 | printf("hello from prog1.c\n"); 8 | common(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/multiple-targets/src/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void common(void); 4 | 5 | int main(void) 6 | { 7 | printf("hello from prog2.c\n"); 8 | common(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/ninja/action-rule-hash/subdir/emit.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2014 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 | import sys 8 | 9 | f = open(sys.argv[1], 'w') 10 | f.write('int main() {\n') 11 | f.write(' return 0;\n') 12 | f.write('}\n') 13 | f.close() 14 | -------------------------------------------------------------------------------- /test/ninja/action_dependencies/src/a.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #include "a.h" 7 | 8 | int funcA() { 9 | return 42; 10 | } 11 | -------------------------------------------------------------------------------- /test/ninja/action_dependencies/src/a.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #ifndef A_H_ 7 | #define A_H_ 8 | 9 | #include "a/generated.h" 10 | 11 | int funcA(); 12 | 13 | #endif // A_H_ 14 | -------------------------------------------------------------------------------- /test/ninja/action_dependencies/src/b.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #ifndef B_H_ 7 | #define B_H_ 8 | 9 | #include "a.h" 10 | 11 | int funcB(); 12 | 13 | #endif // B_H_ 14 | -------------------------------------------------------------------------------- /test/ninja/action_dependencies/src/c.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #include "c.h" 7 | 8 | int funcC() { 9 | return VALUE; 10 | } 11 | -------------------------------------------------------------------------------- /test/ninja/action_dependencies/src/c.h: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | #ifndef C_H_ 7 | #define C_H_ 8 | 9 | #include "c/generated.h" 10 | 11 | int funcC(); 12 | 13 | #endif // C_H_ 14 | -------------------------------------------------------------------------------- /test/ninja/action_dependencies/src/emit.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2011 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 | import sys 8 | 9 | f = open(sys.argv[1], 'w') 10 | f.write('/* Hello World */\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /test/ninja/chained-dependency/chained.c: -------------------------------------------------------------------------------- 1 | #include "generated/header.h" 2 | 3 | int main(void) { 4 | return 0; 5 | } 6 | -------------------------------------------------------------------------------- /test/ninja/normalize-paths-win/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/ninja/s-needs-no-depfiles/empty.s: -------------------------------------------------------------------------------- 1 | # This file intentionally left blank. 2 | -------------------------------------------------------------------------------- /test/ninja/s-needs-no-depfiles/s-needs-no-depfiles.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'empty', 9 | 'type': 'shared_library', 10 | 'sources': [ 'empty.s' ], 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /test/ninja/solibs_avoid_relinking/main.cc: -------------------------------------------------------------------------------- 1 | extern int foo(); 2 | 3 | int main() { 4 | return foo(); 5 | } 6 | -------------------------------------------------------------------------------- /test/ninja/solibs_avoid_relinking/solib.cc: -------------------------------------------------------------------------------- 1 | #ifdef _MSC_VER 2 | __declspec(dllexport) 3 | #else 4 | __attribute__((visibility("default"))) 5 | #endif 6 | int foo() { 7 | return 42; 8 | } 9 | -------------------------------------------------------------------------------- /test/ninja/use-console/foo.bar: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014 Google Inc. 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 | This is a dummy file for rule/action input. 6 | -------------------------------------------------------------------------------- /test/ninja/use-custom-environment-files/use-custom-environment-files.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/no-cpp/src/call-f-main.c: -------------------------------------------------------------------------------- 1 | void* f(); 2 | int main() { f(); } 3 | -------------------------------------------------------------------------------- /test/no-cpp/src/empty-main.c: -------------------------------------------------------------------------------- 1 | int main() {} 2 | -------------------------------------------------------------------------------- /test/no-cpp/src/f.cc: -------------------------------------------------------------------------------- 1 | extern "C" { void* f(); } 2 | 3 | void* f() { return new int; } 4 | -------------------------------------------------------------------------------- /test/product/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | #include 6 | 7 | int func1(void) { 8 | return 42; 9 | } 10 | 11 | int main(void) { 12 | printf("Hello, world!\n"); 13 | printf("%d\n", func1()); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /test/prune_targets/lib1.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | void libfunc1() { 6 | } 7 | -------------------------------------------------------------------------------- /test/prune_targets/lib2.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | void libfunc2() { 6 | } 7 | -------------------------------------------------------------------------------- /test/prune_targets/lib3.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | void libfunc3() { 6 | } 7 | -------------------------------------------------------------------------------- /test/prune_targets/lib_indirect.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | void libfunc_indirect() { 6 | } 7 | -------------------------------------------------------------------------------- /test/prune_targets/program.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/relative/foo/a/a.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 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 | */ 6 | 7 | int main() { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /test/relative/foo/a/a.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'a', 5 | 'type': 'executable', 6 | 'sources': ['a.cc'], 7 | 'dependencies': [ 8 | '../../foo/b/b.gyp:b', 9 | 'c/c.gyp:c', 10 | ], 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /test/relative/foo/a/c/c.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 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 | */ 6 | 7 | int func() { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /test/relative/foo/a/c/c.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'c', 5 | 'type': 'static_library', 6 | 'sources': ['c.cc'], 7 | 'dependencies': [ 8 | '../../b/b.gyp:b', 9 | ], 10 | }, 11 | ], 12 | } 13 | -------------------------------------------------------------------------------- /test/relative/foo/b/b.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2011 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 | */ 6 | 7 | int func2() { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /test/relative/foo/b/b.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'b', 5 | 'type': 'static_library', 6 | 'sources': ['b.cc'], 7 | }, 8 | ], 9 | } 10 | -------------------------------------------------------------------------------- /test/rename/filecase/file.c: -------------------------------------------------------------------------------- 1 | int main() { return 0; } 2 | -------------------------------------------------------------------------------- /test/rename/filecase/test.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | 'targets': [ 6 | { 7 | 'target_name': 'filecaserename', 8 | 'type': 'executable', 9 | 'sources': [ 10 | 'file.c', 11 | ], 12 | }, 13 | ], 14 | } 15 | -------------------------------------------------------------------------------- /test/rules/dirname/src/copy-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2011 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 | import sys 7 | 8 | contents = open(sys.argv[1], 'r').read() 9 | open(sys.argv[2], 'w').write(contents) 10 | 11 | sys.exit(0) 12 | -------------------------------------------------------------------------------- /test/rules/dirname/src/subdir/a/b/c.gencc: -------------------------------------------------------------------------------- 1 | // -*- mode: c++ -*- 2 | #include 3 | 4 | namespace gen { 5 | void c() { 6 | printf("hi c\n"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test/rules/dirname/src/subdir/a/b/c.printvars: -------------------------------------------------------------------------------- 1 | # Empty file for testing build rules 2 | -------------------------------------------------------------------------------- /test/rules/dirname/src/subdir/foo/bar/baz.gencc: -------------------------------------------------------------------------------- 1 | // -*- mode: c++ -*- 2 | #include 3 | 4 | namespace gen { 5 | void baz() { 6 | printf("hello baz\n"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test/rules/dirname/src/subdir/foo/bar/baz.printvars: -------------------------------------------------------------------------------- 1 | # Empty file for testing build rules 2 | -------------------------------------------------------------------------------- /test/rules/dirname/src/subdir/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | namespace gen { 5 | extern void nodir(); 6 | extern void c(); 7 | extern void baz(); 8 | } 9 | 10 | int main() { 11 | gen::nodir(); 12 | gen::c(); 13 | gen::baz(); 14 | } 15 | -------------------------------------------------------------------------------- /test/rules/dirname/src/subdir/nodir.gencc: -------------------------------------------------------------------------------- 1 | // -*- mode: c++ -*- 2 | #include 3 | 4 | namespace gen { 5 | void nodir() { 6 | printf("no dir here\n"); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /test/rules/dirname/src/subdir/printvars.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2011 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 | """ 8 | Prints interesting vars 9 | """ 10 | 11 | import sys; 12 | 13 | out = open(sys.argv[2], 'w') 14 | out.write(sys.argv[1]); 15 | -------------------------------------------------------------------------------- /test/rules/e2e/src/an_asm.S: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // Fake asm file. 6 | int main() {} 7 | -------------------------------------------------------------------------------- /test/rules/e2e/src/as.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: Copyright (c) 2011 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 | 6 | :: Fake assembler for Windows 7 | cl /TP /c %1 /Fo%2 8 | -------------------------------------------------------------------------------- /test/rules/e2e/src/copy-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 7 | 8 | contents = open(sys.argv[1], 'r').read() 9 | open(sys.argv[2], 'w').write(contents) 10 | 11 | sys.exit(0) 12 | -------------------------------------------------------------------------------- /test/rules/e2e/src/external/file1.in: -------------------------------------------------------------------------------- 1 | Hello from file1.in 2 | -------------------------------------------------------------------------------- /test/rules/e2e/src/external/file2.in: -------------------------------------------------------------------------------- 1 | Hello from file2.in 2 | -------------------------------------------------------------------------------- /test/rules/e2e/src/noaction/file1.in: -------------------------------------------------------------------------------- 1 | Hello from file1.in 2 | -------------------------------------------------------------------------------- /test/rules/e2e/src/somefile.ext: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/rules/e2e/src/somefile.ext -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir1/function1.in: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void function1(void) 4 | { 5 | printf("Hello from function1.in\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir1/function2.in: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void function2(void) 4 | { 5 | printf("Hello from function2.in\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir1/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void function1(void); 4 | extern void function2(void); 5 | 6 | int main(void) 7 | { 8 | printf("Hello from program.c\n"); 9 | function1(); 10 | function2(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir2/file1.in: -------------------------------------------------------------------------------- 1 | Hello from file1.in 2 | -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir2/file2.in: -------------------------------------------------------------------------------- 1 | Hello from file2.in 2 | -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir2/program.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2014 Google Inc. 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 | #include 7 | 8 | int main(void) 9 | { 10 | printf("Hello from program.c\n"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir3/function3.in: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern "C" void function3(void) 4 | { 5 | printf("Hello from function3.in\n"); 6 | } 7 | -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir3/program.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void function3(void); 4 | 5 | int main(void) 6 | { 7 | printf("Hello from program.c\n"); 8 | function3(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/rules/e2e/src/subdir4/asm-function.assem: -------------------------------------------------------------------------------- 1 | #if PLATFORM_WINDOWS || PLATFORM_MAC 2 | # define IDENTIFIER(n) _##n 3 | #else /* Linux */ 4 | # define IDENTIFIER(n) n 5 | #endif 6 | 7 | .globl IDENTIFIER(asm_function) 8 | IDENTIFIER(asm_function): 9 | movl $41, %eax 10 | ret 11 | -------------------------------------------------------------------------------- /test/rules/rebuild/src/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void prog1(void); 4 | extern void prog2(void); 5 | 6 | int main(void) 7 | { 8 | printf("Hello from main.c\n"); 9 | prog1(); 10 | prog2(); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/rules/rebuild/src/prog1.in: -------------------------------------------------------------------------------- 1 | #include 2 | #include "prog1.h" 3 | 4 | void prog1(void) 5 | { 6 | printf("Hello from %s!\n", NAME); 7 | } 8 | -------------------------------------------------------------------------------- /test/rules/rebuild/src/prog2.in: -------------------------------------------------------------------------------- 1 | #include 2 | #include "prog2.h" 3 | 4 | void prog2(void) 5 | { 6 | printf("Hello from %s!\n", NAME); 7 | } 8 | -------------------------------------------------------------------------------- /test/rules/variables/src/input_ext.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | #include 6 | 7 | void input_ext() { 8 | printf("input_ext\n"); 9 | } 10 | -------------------------------------------------------------------------------- /test/rules/variables/src/input_name/test.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | #include 6 | 7 | void input_name() { 8 | printf("input_name\n"); 9 | } 10 | -------------------------------------------------------------------------------- /test/rules/variables/src/input_path/subdir/test.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | #include 6 | 7 | void input_path() { 8 | printf("input_path\n"); 9 | } 10 | -------------------------------------------------------------------------------- /test/rules/variables/src/subdir/input_dirname.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | #include 6 | 7 | void input_dirname() { 8 | printf("input_dirname\n"); 9 | } 10 | -------------------------------------------------------------------------------- /test/rules/variables/src/test.input_root.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2011 Google Inc. 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 | #include 6 | 7 | void input_root() { 8 | printf("input_root\n"); 9 | } 10 | -------------------------------------------------------------------------------- /test/same-gyp-name/library/one/sub.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | 'targets': [ 6 | { 7 | 'target_name': 'one', 8 | 'type': 'static_library', 9 | }, 10 | ], 11 | } 12 | -------------------------------------------------------------------------------- /test/same-gyp-name/library/two/sub.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | 'targets': [ 6 | { 7 | 'target_name': 'two', 8 | 'type': 'static_library', 9 | }, 10 | ], 11 | } 12 | -------------------------------------------------------------------------------- /test/same-gyp-name/src/subdir1/main1.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("Hello from main1.cc\n"); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /test/same-gyp-name/src/subdir2/main2.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("Hello from main2.cc\n"); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /test/same-rule-output-file-name/src/touch.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 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 | import sys 8 | 9 | f = open(sys.argv[1], 'w+') 10 | f.write('Hello from touch.py\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /test/same-source-file-name/src/func.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void func(void) 4 | { 5 | printf("Hello %s from func.c\n", PROG); 6 | } 7 | -------------------------------------------------------------------------------- /test/same-source-file-name/src/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func(void); 4 | 5 | int main(void) 6 | { 7 | printf("Hello from prog1.c\n"); 8 | func(); 9 | /* 10 | * Uncomment to test same-named files in different directories, 11 | * which Visual Studio doesn't support. 12 | subdir1_func(); 13 | subdir2_func(); 14 | */ 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /test/same-source-file-name/src/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void func(void); 4 | 5 | int main(void) 6 | { 7 | printf("Hello from prog2.c\n"); 8 | func(); 9 | /* 10 | * Uncomment to test same-named files in different directories, 11 | * which Visual Studio doesn't support. 12 | subdir1_func(); 13 | subdir2_func(); 14 | */ 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /test/same-source-file-name/src/subdir1/func.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void subdir1_func(void) 4 | { 5 | printf("Hello %s from subdir1/func.c\n", PROG); 6 | } 7 | -------------------------------------------------------------------------------- /test/same-source-file-name/src/subdir2/func.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void subdir2_func(void) 4 | { 5 | printf("Hello %s from subdir2/func.c\n", PROG); 6 | } 7 | -------------------------------------------------------------------------------- /test/same-target-name-different-directory/src/touch.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 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 | import sys 8 | 9 | f = open(sys.argv[1], 'w+') 10 | f.write('Hello from touch.py\n') 11 | f.close() 12 | -------------------------------------------------------------------------------- /test/sanitize-rule-names/blah.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/sanitize-rule-names/blah.S -------------------------------------------------------------------------------- /test/sanitize-rule-names/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/sanitize-rule-names/script.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 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 | import shutil 8 | import sys 9 | 10 | shutil.copyfile(*sys.argv[1:]) 11 | -------------------------------------------------------------------------------- /test/self-dependency/self_dependency.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2013 Google Inc. 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 | 'includes': [ 7 | 'common.gypi', 8 | ], 9 | 'targets': [ 10 | { 11 | 'target_name': 'a', 12 | 'type': 'none', 13 | }, 14 | ], 15 | } 16 | -------------------------------------------------------------------------------- /test/sibling/src/prog1/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from prog1.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/sibling/src/prog2/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from prog2.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/standalone-static-library/mylib.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void print(void) 4 | { 5 | printf("hello from mylib.c\n"); 6 | return; 7 | } 8 | -------------------------------------------------------------------------------- /test/standalone-static-library/prog.c: -------------------------------------------------------------------------------- 1 | extern void print(void); 2 | 3 | int main(void) 4 | { 5 | print(); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/standalone/standalone.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2009 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name' : 'foo', 9 | 'type' : 'executable' 10 | }, 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /test/subdirectory/src/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from prog1.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/subdirectory/src/subdir/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from prog2.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/subdirectory/src/subdir/subdir2/prog3.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from prog3.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/symlinks/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2015 Google Inc. 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 | #include 7 | 8 | int main(void) 9 | { 10 | printf("Hello, world!\n"); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/target/hello.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | #include 5 | 6 | void main(void) { 7 | printf("Hello, world!\n"); 8 | } 9 | -------------------------------------------------------------------------------- /test/toolsets/toolsets.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009 Google Inc. 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 | const char *GetToolset() { 6 | #ifdef TARGET 7 | return "Target"; 8 | #else 9 | return "Host"; 10 | #endif 11 | } 12 | -------------------------------------------------------------------------------- /test/toolsets/toolsets_shared.cc: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2013 Google Inc. 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 | const char *GetToolsetShared() { 6 | #ifdef TARGET 7 | return "Target"; 8 | #else 9 | return "Host"; 10 | #endif 11 | } 12 | -------------------------------------------------------------------------------- /test/toplevel-dir/src/sub1/prog1.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from prog1.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/toplevel-dir/src/sub2/prog2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) 4 | { 5 | printf("Hello from prog2.c\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/variables/commands/repeated_multidir/print_cwd_basename.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright 2014 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 | from __future__ import print_function 8 | import os 9 | 10 | print(os.path.basename(os.getcwd())) 11 | -------------------------------------------------------------------------------- /test/variables/commands/test.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2017 Google Inc. 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 | from __future__ import print_function 6 | 7 | print("sample\\path\\foo.cpp") 8 | -------------------------------------------------------------------------------- /test/variables/empty/empty.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 Google Inc. 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 | 'includes': ['empty.gypi'], 7 | 'targets': [ 8 | { 9 | 'target_name': 'empty', 10 | 'type': 'none', 11 | }, 12 | ], 13 | } 14 | -------------------------------------------------------------------------------- /test/variables/empty/empty.gypi: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2015 Google Inc. 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 | '': '', 8 | }, 9 | } 10 | -------------------------------------------------------------------------------- /test/variables/filelist/src/dummy.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import sys 4 | 5 | open(sys.argv[1], 'w').write(open(sys.argv[2]).read()) 6 | -------------------------------------------------------------------------------- /test/variables/filelist/update_golden: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (c) 2009 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 | python ../../../gyp --debug variables --debug general --format gypd --depth . src/filelist.gyp > filelist.gyp.stdout 8 | cp -f src/filelist.gypd filelist.gypd.golden 9 | -------------------------------------------------------------------------------- /test/variables/latelate/src/program.cc: -------------------------------------------------------------------------------- 1 | /* 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 | */ 6 | 7 | #include 8 | 9 | 10 | int main(void) { 11 | printf(FOO "\n"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /test/variables/pymod_do_main/ForEachFormat.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 Refael Ackermann. All rights reserved. 2 | # Use of this source code is governed by an MIT-style license. 3 | def DoMain(args): 4 | format_str = args.pop(0) 5 | return ' '.join(format_str % a for a in args) 6 | -------------------------------------------------------------------------------- /test/variables/pymod_do_main/GetConstantValue.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2019 Refael Ackermann. All rights reserved. 2 | # Use of this source code is governed by an MIT-style license. 3 | 4 | # GetConstantValue 5 | 6 | def DoMain(args): 7 | return 'Lorem ipsum. %s' % tuple(args) 8 | -------------------------------------------------------------------------------- /test/variables/pymod_do_main/update_golden.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | python ../../../gyp_main.py --debug variables --format gypd --depth . commands-pymod_do_main.gyp > commands-pymod_do_main.gyp.stdout 4 | /usr/bin/mv -f commands-pymod_do_main.gypd commands-pymod_do_main.gypd.golden 5 | -------------------------------------------------------------------------------- /test/variables/variable-in-path/C1/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/asm-files/b.s: -------------------------------------------------------------------------------- 1 | END 2 | -------------------------------------------------------------------------------- /test/win/asm-files/c.S: -------------------------------------------------------------------------------- 1 | END 2 | -------------------------------------------------------------------------------- /test/win/asm-files/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/batch-file-action/infile: -------------------------------------------------------------------------------- 1 | input 2 | -------------------------------------------------------------------------------- /test/win/batch-file-action/somecmd.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | :: The redirs to nul are important. %2 can end up being an unterminated "'d 3 | :: string, so the remainder of the command line becomes the target file name, 4 | :: which in turn fails because it's a filename containing >, nul, etc. 5 | copy /y %1 %2 >nul 2>nul 6 | -------------------------------------------------------------------------------- /test/win/command-quote/a.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/win/command-quote/a.S -------------------------------------------------------------------------------- /test/win/command-quote/bat with spaces.bat: -------------------------------------------------------------------------------- 1 | @echo off 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 | copy %1 %2 8 | -------------------------------------------------------------------------------- /test/win/command-quote/go.bat: -------------------------------------------------------------------------------- 1 | @echo off 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 | copy %1 %2 8 | -------------------------------------------------------------------------------- /test/win/compiler-flags/additional-include-dirs.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // No path qualification to test compiler include dir specification. 6 | #include "header.h" 7 | 8 | int main() { 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/compiler-flags/additional-options.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | // Generate a warning that will appear at level 4, but not level 1 7 | // (truncation and unused local). 8 | char c = 123456; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/compiler-flags/calling-convention-cdecl.def: -------------------------------------------------------------------------------- 1 | ; Copyright (c) 2014 Google Inc. 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 | EXPORTS 6 | foo 7 | -------------------------------------------------------------------------------- /test/win/compiler-flags/calling-convention-fastcall.def: -------------------------------------------------------------------------------- 1 | ; Copyright (c) 2014 Google Inc. 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 | EXPORTS 6 | @foo@0 7 | -------------------------------------------------------------------------------- /test/win/compiler-flags/calling-convention-stdcall.def: -------------------------------------------------------------------------------- 1 | ; Copyright (c) 2014 Google Inc. 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 | EXPORTS 6 | _foo@0 7 | -------------------------------------------------------------------------------- /test/win/compiler-flags/calling-convention-vectorcall.def: -------------------------------------------------------------------------------- 1 | ; Copyright (c) 2014 Google Inc. 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 | EXPORTS 6 | foo@@0 7 | -------------------------------------------------------------------------------- /test/win/compiler-flags/calling-convention.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | extern "C" void foo() { 6 | } 7 | -------------------------------------------------------------------------------- /test/win/compiler-flags/character-set-mbcs.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #ifndef _MBCS 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/win/compiler-flags/character-set-unicode.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #ifndef _UNICODE 6 | #error 7 | #endif 8 | 9 | #ifndef UNICODE 10 | #error 11 | #endif 12 | 13 | int main() { 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /test/win/compiler-flags/compile-as-managed.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | #include 6 | 7 | int main() { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /test/win/compiler-flags/disable-specific-warnings.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int main() { 6 | // Causes level 1 warning (C4700) 7 | int i; 8 | return i; 9 | } 10 | -------------------------------------------------------------------------------- /test/win/compiler-flags/force-include-files-with-precompiled.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main() { 8 | std::string s; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/compiler-flags/force-include-files.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | std::list > l; 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /test/win/compiler-flags/function-level-linking.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int comdat_function() { 6 | return 1; 7 | } 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/win/compiler-flags/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/compiler-flags/pdbname.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int some_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/compiler-flags/precomp.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2013 Google Inc. 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 | #include 6 | #include 7 | -------------------------------------------------------------------------------- /test/win/compiler-flags/rtti-on.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #ifndef _CPPRTTI 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/win/compiler-flags/runtime-checks.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #ifndef __MSVC_RUNTIME_CHECKS 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/win/compiler-flags/subdir/header.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/win/compiler-flags/subdir/header.h -------------------------------------------------------------------------------- /test/win/compiler-flags/treat-wchar-t-as-built-in-type1.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #ifdef _NATIVE_WCHAR_T_DEFINED 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/win/compiler-flags/treat-wchar-t-as-built-in-type2.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #ifndef _NATIVE_WCHAR_T_DEFINED 6 | #error 7 | #endif 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/win/compiler-flags/uninit.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | // Should trigger C6001: using uninitialized memory for |i|. 6 | int f(bool b) { 7 | int i; 8 | if (b) 9 | i = 0; 10 | return i; 11 | } 12 | 13 | int main() {} 14 | -------------------------------------------------------------------------------- /test/win/compiler-flags/warning-level1.cc: -------------------------------------------------------------------------------- 1 | // C4269.cpp 2 | // compile with: /c /LD /W1 3 | class X { 4 | public: 5 | int m_data; 6 | }; 7 | 8 | void g() { 9 | const X x1; // C4269 10 | }; 11 | 12 | int main() { 13 | } 14 | -------------------------------------------------------------------------------- /test/win/compiler-flags/warning-level2.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int f(int x) { 6 | return 0; 7 | } 8 | 9 | int main() { 10 | double x = 10.1; 11 | // Cause a level 2 warning (C4243). 12 | return f(x); 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /test/win/compiler-flags/warning-level4.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | const int i = -1; 7 | // Cause a level 4 warning (C4245). 8 | unsigned int j = i; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/generator-output-different-drive/prog.c: -------------------------------------------------------------------------------- 1 | // Copyright 2013 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 | #include 6 | 7 | int main(void) { 8 | printf("Hello from prog.c\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/idl-excluded/bad.idl: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 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 | This is a dummy .idl file that will trigger an error if it is not excluded from 6 | the build. 7 | -------------------------------------------------------------------------------- /test/win/idl-excluded/copy-file.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # Copyright (c) 2009 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 | import sys 7 | 8 | contents = open(sys.argv[1], 'r').read() 9 | open(sys.argv[2], 'w').write(contents) 10 | 11 | sys.exit(0) 12 | -------------------------------------------------------------------------------- /test/win/idl-excluded/program.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/idl-includedirs/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/idl-rules/Window.idl: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | WillBeGarbageCollected, 7 | ] interface Window { 8 | void alert(); 9 | }; 10 | -------------------------------------------------------------------------------- /test/win/importlib/dll_no_exports.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | #include 6 | 7 | BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) { 8 | return TRUE; 9 | } 10 | -------------------------------------------------------------------------------- /test/win/importlib/has-exports.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | __declspec(dllexport) void some_function() { 6 | } 7 | 8 | int main() { 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/importlib/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | __declspec(dllimport) void some_function(); 6 | 7 | int main() { 8 | some_function(); 9 | } 10 | -------------------------------------------------------------------------------- /test/win/large-pdb/dllmain.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | #include 6 | 7 | BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) { 8 | return TRUE; 9 | } 10 | -------------------------------------------------------------------------------- /test/win/large-pdb/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int main(void) { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/lib-crosscompile/answer.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include "answer.h" 6 | 7 | int answer() { 8 | return 42; 9 | } 10 | -------------------------------------------------------------------------------- /test/win/lib-crosscompile/answer.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int answer(); -------------------------------------------------------------------------------- /test/win/lib-flags/answer.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include "answer.h" 6 | 7 | int answer() { 8 | return 42; 9 | } 10 | -------------------------------------------------------------------------------- /test/win/lib-flags/answer.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int answer(); -------------------------------------------------------------------------------- /test/win/linker-flags/a/x.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int x() { 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/linker-flags/a/z.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int z() { 6 | return 3; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/linker-flags/additional-deps.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main() { 8 | WSAStartup(0, 0); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/linker-flags/b/y.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int y() { 6 | return 2; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/linker-flags/deffile.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | void AnExportedFunction() { 6 | } 7 | 8 | void AnotherExportedFunction() { 9 | } 10 | 11 | int main() { 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /test/win/linker-flags/deffile.def: -------------------------------------------------------------------------------- 1 | ; Copyright (c) 2012 Google Inc. 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 | LIBRARY test_deffile_ok 6 | 7 | EXPORTS 8 | AnExportedFunction 9 | -------------------------------------------------------------------------------- /test/win/linker-flags/delay-load.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main() { 8 | SHCreateDirectory(0, 0); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/linker-flags/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/linker-flags/inline_test.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | bool IsFunctionInlined(void* current_return_address); 6 | -------------------------------------------------------------------------------- /test/win/linker-flags/library-adjust.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int main() { 8 | WSAStartup(0, 0); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/linker-flags/library-directories-define.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int library_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/linker-flags/library-directories-reference.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | extern int library_function(); 6 | 7 | int main() { 8 | library_function(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/linker-flags/link-warning.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | // This will cause LNK4254. 6 | #pragma comment(linker, "/merge:.data=.text") 7 | 8 | int main() { 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/linker-flags/main-crt.c: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | // Stub so we can link with /NODEFAULTLIB when checking disasm. 6 | int mainCRTStartup() { 7 | return 5; 8 | } 9 | -------------------------------------------------------------------------------- /test/win/linker-flags/mapfile.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | __declspec(dllexport) 6 | void AnExportedFunction() { 7 | // We need an exported function to verify that /MAPINFO:EXPORTS works. 8 | } 9 | 10 | int main() { 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /test/win/linker-flags/no-default-libs.gyp: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | 'targets': [ 7 | { 8 | 'target_name': 'test_default', 9 | 'type': 'executable', 10 | 'sources': ['no-default-libs.cc'], 11 | }, 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /test/win/linker-flags/opt-ref.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int unused_function() { 6 | return 0; 7 | } 8 | 9 | int main() { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /test/win/linker-flags/safeseh_hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | extern "C" { 6 | int zero(void); 7 | } 8 | 9 | int main() { 10 | return zero(); 11 | } 12 | -------------------------------------------------------------------------------- /test/win/linker-flags/safeseh_zero.asm: -------------------------------------------------------------------------------- 1 | .MODEL FLAT, C 2 | .CODE 3 | 4 | PUBLIC zero 5 | zero PROC 6 | xor eax, eax 7 | ret 0 8 | zero ENDP 9 | 10 | END 11 | -------------------------------------------------------------------------------- /test/win/linker-flags/safeseh_zero64.asm: -------------------------------------------------------------------------------- 1 | .CODE 2 | 3 | PUBLIC zero 4 | zero PROC 5 | xor eax, eax 6 | ret 0 7 | zero ENDP 8 | 9 | END 10 | -------------------------------------------------------------------------------- /test/win/linker-flags/subsystem-windows.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | #include 6 | 7 | int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /test/win/linker-flags/x.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int x() { 6 | return 1; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/linker-flags/y.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int y() { 6 | return 2; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/linker-flags/z.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int z() { 6 | return 3; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/long-command-line/function.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int func() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/long-command-line/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/ml-safeseh/a.asm: -------------------------------------------------------------------------------- 1 | .MODEL FLAT, C 2 | .CODE 3 | 4 | PUBLIC zero 5 | zero PROC 6 | xor eax, eax 7 | ret 0 8 | zero ENDP 9 | 10 | END 11 | -------------------------------------------------------------------------------- /test/win/ml-safeseh/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Google Inc. 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 | extern "C" { 6 | int zero(void); 7 | } 8 | 9 | int main() { 10 | return zero(); 11 | } 12 | -------------------------------------------------------------------------------- /test/win/precompiled/hello2.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | // Unlike hello.c, this file specifies the headers. 6 | 7 | #include 8 | #include 9 | 10 | int hello2() { 11 | printf("Hello, two!\n"); 12 | return 0; 13 | } 14 | -------------------------------------------------------------------------------- /test/win/precompiled/precomp.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2011 Google Inc. 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 | // The precompiled header does not have to be the first one in the file. 6 | 7 | #include 8 | #include 9 | -------------------------------------------------------------------------------- /test/win/rc-build/hello.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /test/win/rc-build/hello.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/win/rc-build/hello.ico -------------------------------------------------------------------------------- /test/win/rc-build/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/win/rc-build/small.ico -------------------------------------------------------------------------------- /test/win/rc-build/subdir/include.h: -------------------------------------------------------------------------------- 1 | // Just exists to make sure it can be included. 2 | -------------------------------------------------------------------------------- /test/win/shard/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/shard/hello1.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int f1() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/shard/hello2.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int f2() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/shard/hello3.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int f3() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/shard/hello4.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Google Inc. 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 | int f4() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/system-include/bar/header.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/win/system-include/bar/header.h -------------------------------------------------------------------------------- /test/win/system-include/common/commonheader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/win/system-include/common/commonheader.h -------------------------------------------------------------------------------- /test/win/system-include/foo/header.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/win/system-include/foo/header.h -------------------------------------------------------------------------------- /test/win/system-include/main.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() {} 5 | -------------------------------------------------------------------------------- /test/win/uldi/a.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int some_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/uldi/b.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int some_function() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/uldi/dll.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | __declspec(dllexport) void SomeFunction() { 6 | } 7 | -------------------------------------------------------------------------------- /test/win/uldi/exe.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/uldi/main.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | extern int some_function(); 6 | 7 | int main() { 8 | some_function(); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /test/win/vs-macros/do_stuff.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | import sys 6 | 7 | input = open(sys.argv[1], "r").read() 8 | open(sys.argv[2], "w").write(input + "Modified.") 9 | -------------------------------------------------------------------------------- /test/win/vs-macros/hello.cc: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012 Google Inc. 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/win/vs-macros/input.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/test/win/vs-macros/input.S -------------------------------------------------------------------------------- /test/win/vs-macros/stuff.blah: -------------------------------------------------------------------------------- 1 | Random data file. 2 | -------------------------------------------------------------------------------- /test/win/vs-macros/test_exists.py: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2012 Google Inc. 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 | import os 6 | import sys 7 | 8 | if not os.path.exists(sys.argv[1]): 9 | raise Exception() 10 | open(sys.argv[2], 'w').close() 11 | -------------------------------------------------------------------------------- /test/xcode-ninja/list_excluded/hello.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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 | int main() { 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /test/xcode-ninja/list_excluded/hello_excluded.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 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 | int main() { 6 | return 42; 7 | } 8 | -------------------------------------------------------------------------------- /testlib/SConsLib/TestUnit/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | __all__ = ['TAPTestRunner', 'TAPTestResult', 'run'] 3 | 4 | from .taprunner import TAPTestRunner, TAPTestResult 5 | from .cli import run 6 | -------------------------------------------------------------------------------- /testlib/SConsLib/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/testlib/SConsLib/__init__.py -------------------------------------------------------------------------------- /tools/Xcode/README: -------------------------------------------------------------------------------- 1 | Specifications contains syntax formatters for Xcode 3. These do not appear to be supported yet on Xcode 4. To use these with Xcode 3 please install both the gyp.pbfilespec and gyp.xclangspec files in 2 | 3 | ~/Library/Application Support/Developer/Shared/Xcode/Specifications/ 4 | 5 | and restart Xcode. -------------------------------------------------------------------------------- /tools/emacs/run-unit-tests.sh: -------------------------------------------------------------------------------- 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 8 | -------------------------------------------------------------------------------- /tools/vssetup.powershell/Microsoft.VisualStudio.Setup.PowerShell.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refack/GYP3/6a5d2545c6de9db64d6dc98882008666ea6056e8/tools/vssetup.powershell/Microsoft.VisualStudio.Setup.PowerShell.dll -------------------------------------------------------------------------------- /tools/vssetup.powershell/VSQuery.ps1: -------------------------------------------------------------------------------- 1 | Set-Location $PSScriptRoot; 2 | Import-Module .\Microsoft.VisualStudio.Setup.PowerShell.dll 3 | Get-VSSetupInstance -All | Sort-Object @{Expression={$_.InstallationVersion}; Descending=$true} | ConvertTo-Json 4 | 5 | --------------------------------------------------------------------------------