Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/electron/gyp


https://github.com/electron/gyp

Have the SCons generator object files in separate directories per target,

so targets in the same .gyp can share same-named source files.
Review URL: http://codereview.chro...

547090fcaae9c41a68a051ea7789f4323b950a12 authored over 15 years ago
Limit the -j on make for rules so the user does not run out of processes.

Review URL: http://codereview.chromium.org/199097

git-svn-id: http://gyp.googlecode.com/svn/trun...

5270fcdd9af421a59ad14994938d133334656a15 authored over 15 years ago
Fix the SCons generator to make sure ../.. relative paths can't cause object

files to climb out of the build directory and get created under src/ or
elsewhere. Add a test co...

144e82c7443e514c716183992708a1e9b8467b93 authored over 15 years ago
Minor cleanup for the scons generator.

Review URL: http://codereview.chromium.org/196087

git-svn-id: http://gyp.googlecode.com/svn/trun...

a3cb670ab4d0429cb3c12cac4904437958f93bcf authored over 15 years ago
Pulling in all dependencies into scons DAG/msvs sln, even those that are

only link time dependencies.

BUG=70
TEST=test/dependencies/gyptest-lib-only.py

Review URL: http...

a751730e8f57666429ac11d01ca9068c9fc462fa authored over 15 years ago
Experimentally adding tryserver hook.

git-svn-id: http://gyp.googlecode.com/svn/trunk@646 78cadc50-ecff-11dd-a971-7dbc132099af

f8b6452b27996f8602ffb76930c3ecc95c3d9a39 authored over 15 years ago
Test actions with --generator-output=. Fix SCons support by making

relative paths in actions relative to $SRC_DIR/{subdir}. Update the
basic (non --generator-outpu...

f187950af9c156ac83af453d63b57edfeed6b200 authored over 15 years ago
For targets that depend the executables and loadable modules, depend on the short alias rather than the real target. Have the short alias depend on both the real target and its product location.

This fixes http://code.google.com/p/gyp/issues/detail?id=64
Review URL: http://codereview.chromi...

ab7c2dc35ce946ca57160d40607d4a5c8cc107c4 authored over 15 years ago
Make generator: Fix test/rules/gyptest-all.py and test/rules/gyptest-default.py.

Write out a separate set of actions for each rule. Actions containing "INPUT_ROOT" does not work...

5fb1f55ddfc4eb1346568207669064b25ecafd35 authored over 15 years ago
Fix use of copies in --generator-output= (round II):

* Visual Studio shouldn't add the --generator-output= prefix
to a path if it begins with a macr...

700119484c46eab4bbff324caf55dce32bd7c401 authored over 15 years ago
Let the test infrastructure look for VS2008 if VS2005 isn't installed.

Review URL: http://codereview.chromium.org/202024

git-svn-id: http://gyp.googlecode.com/svn/trun...

057b6892a1d1878be4fbeae898fb190362be4a55 authored over 15 years ago
Revert r639; broke Chromium Linux+scons canary.

Review URL: http://codereview.chromium.org/201053

git-svn-id: http://gyp.googlecode.com/svn/trun...

fba4217a612a1c0ba945a5c38b1010243e121ffa authored over 15 years ago
Fix use of copies in --generator-output=:

* Visual Studio shouldn't add the --generator-output=
prefix to a path if it begins with a '$'....

3158c60fe613904abe9e182ce4ba3f7036ced167 authored over 15 years ago
Add use of include_dirs to the --generator-output= tests.

Prepend $SRC_DIR to include_dirs strings in the SCons generator.
Evaluate include_dirs strings wi...

135a458389fe4f2be1dc59ab97c39d1e43b04df9 authored over 15 years ago
Fixing function not updated for new parameters.

BUG=None
TEST=None
TBR=sgk

Review URL: http://codereview.chromium.org/197022

git-svn-id: http:...

a7b4d364049d85ee8d2c4307299e6951753bb9ec authored over 15 years ago
Making the msvs_quote_cmd option per rule, rather than global.

Making the msvs_quote_cmd option duplicate the old behavior.

Hopefully this whole option goes aw...

e2cb7abd3375aff1a500da7eb4a314d7a3f9daf3 authored over 15 years ago
Fix the actions tests with the make generator.

The actions in gyp are written relative to their defined directory, but the makefile is run from...

6009df71af8265c57676984165e9547b467a8f98 authored over 15 years ago
Fixing handling of .S files for nacl.

BUG=None
TEST=None

Review URL: http://codereview.chromium.org/186015

git-svn-id: http://gyp.go...

93cb07e8ee315e78a0524c9a1bcf6fb69d874a6d authored over 15 years ago
Add tests of basic 'copies' behavior and fix generators:

* Fix Xcode to handle copies to relative-path output directories,
which should be relative to t...

4f6c7bda24f785ad4a7a3e084c5999329dc05660 authored over 15 years ago
Fix make generator when using target name to build. (If target.c exists in the same directory, Make's implicit rule would try to build target using the actual target + target.c again.) By marking the target phony, we tell make that we don't actually want to generate that output file in the current dir.

BUG=http://code.google.com/p/gyp/issues/detail?id=67

Review URL: http://codereview.chromium.org...

806b4823b31c6c31ffc6f279c63af5a137cd7f0c authored over 15 years ago
Revert r630 ('include_dirs' + --generator-output=),

which broke the Chromium Linux canary.
Review URL: http://codereview.chromium.org/189006

git-svn...

9fbc56eb9c2277fbfd61ee90b099df5187fa1b70 authored over 15 years ago
Add use of include_dirs to the --generator-output= tests.

Prepend $SRC_DIR to include_dir strings in the SCons generator.
Review URL: http://codereview.chr...

cc5a41ed6329bad690ab2c3ebc1e5c765b86df5e authored over 15 years ago
Add basic tests for use of include_dirs.

Review URL: http://codereview.chromium.org/181042

git-svn-id: http://gyp.googlecode.com/svn/trun...

2178b1ecec8b8e42b0395d69c8e946aeee7eadfb authored over 15 years ago
Support --generator-output= by ripping out the addRepository()

stuff and explicitly controlling where the output (object) files
are relative to the source direc...

e8d572ff6af657188ec97af42de60ee5449b0b3a authored over 15 years ago
Explicitly process the input_files list to call the appropriate

SCons builder to transform compilable source files into objects,
instead of letting SCons do it f...

688378c54656084928b1f1cfe6efb13e9486bce9 authored over 15 years ago
Improve the --generator-output= tests:

Make the entire src/ tree non-writable when running gyp,
and then selectively make the build subd...

6eb4ab7a6e48f8f75c1e186c03a1797db058f060 authored over 15 years ago
After refactoring the code that handles rules,

we no longer need the {GYP,}FileList classes.
Review URL: http://codereview.chromium.org/180052

...

ae9e7a25e34cd0f483e02aeaadd8037ca2363093 authored over 15 years ago
This changes the code that reads the USERDOMAIN from the

environment to scraping the output of 'net config Workstation'
to get the domain and user name.
R...

eff8c898c5813f658b2e6ac3f03de560a9aebf13 authored over 15 years ago
Refactor the generated code for handling rules so it replaces

any process_outputs_as_sources files in-line.
Review URL: http://codereview.chromium.org/176051

...

63401219ce5f6a8d97304188a05453e45d2f1fec authored over 15 years ago
Add tests of simple actions and rules using process_output_as_sources,

and fix problems found in generators:
* In the Xcode generator, check if concrete_output_dir is s...

45a90d82e8c974fb09788af03418fccf97e03f29 authored over 15 years ago
This adds a "run_as" attribute to targets that looks like this:

'run_as': {
'environment': {
'PATH': '/bin:/usr/bin',
'HOME': '~',
},
'action' : [...

aaf279794cd1028f98a2cb9a2be3bca794afcf35 authored over 15 years ago
This adds a GYP file pretty printer that will fix indentation in your gyp file.

It properly handles quoted values, comments (including preserving comment
placement) and escaped ...

87bc2d24da6fc8eebd31f400559d0be5c577b416 authored over 15 years ago
Capture a simple test configuration of multiple targets

defined in a single .gyp file.
Review URL: http://codereview.chromium.org/179033

git-svn-id: htt...

534b95848f8fb3bc7ced4590d81d5f85ffc92f03 authored over 15 years ago
Move the logic for writing out the input_files (sources) list into

the SCons.py module, including the definition of the WriteList()
utility function.
Review URL: ht...

290f730423379bf9bb19da21c64771664c7ec8d8 authored over 15 years ago
Refactor target-specific behavior in the SCons generator into a

separate gyp/SCons.py module with better OO architecture.
Review URL: http://codereview.chromium....

8072f25fd9b4c4a9d34bb4bd5eee33763c45b674 authored over 15 years ago
Change the test/subdirectory/*.py tests to test relocatability

of generated gyp configurations.
Review URL: http://codereview.chromium.org/173611

git-svn-id: h...

d550593518022aba6c0a52203c1fd98922ac08ff authored over 15 years ago
Move the subdirectory test configuration down into a 'src' subdirectory.

Review URL: http://codereview.chromium.org/180024

git-svn-id: http://gyp.googlecode.com/svn/trun...

d11b9aee6479cfb7d6499995bd6a8ccb834567f0 authored over 15 years ago
Makefile generator: excessive LIBS variable

Make LIBS a target-specific variable, like how LDFLAGS etc. work.
Also reverts r605, an incorrec...

a38caaf902eb0aac226c8bdcf4d478afea5e1c76 authored over 15 years ago
Make the variables test cross-platform w.r.t. to line endings in the output.

Review URL: http://codereview.chromium.org/174611

git-svn-id: http://gyp.googlecode.com/svn/trun...

c02278cfb5d8d068a26a503477bd09a600b2076a authored over 15 years ago
Much better fix for ~/.gyp/include.gypi affecting command output:

just set the $HOME variable so the test doesn't read the user's.
Review URL: http://codereview.ch...

2de3da3d7db0aecfe20a02e797e75f18fe9b456e authored over 15 years ago
Fix the variable-expansion test so it works even if the user has a

~/.gyp/include.gypi file, which changes the output.
Review URL: http://codereview.chromium.org/17...

e62f19a9d0232068bfe0e525ce56087cc090ef16 authored over 15 years ago
Move the {SHARED_,}INTERMEDIATE_DIR definitions into the

construction environments (to make the generated .scons files more readable).
Review URL: http://...

630bb891dca28efe4c9fbe22e0d30688d2e9cb99 authored over 15 years ago
Add gyptest.py options to support buildbot execution of tests:

* --chdir= to change directory to
* --path= to add directories to $PATH
Add a DEPS file to let th...

19244af3b661622908fc6a894e8da08a1bf9d52c authored over 15 years ago
Enhance TestGyp classes to look for the build tool to use in tests

from a list of possible choices. Use this capability to search
for either 'scons' or 'scons.py' ...

f8dab5efb9f91f8308d7ef1ad7d04220ac3435a6 authored over 15 years ago
Add mappings for resource files.

Review URL: http://codereview.chromium.org/173403

git-svn-id: http://gyp.googlecode.com/svn/trun...

6d7260ec6918d6bfc6d8f3bb39dadb8eaf04c4c6 authored over 15 years ago
Fix handling of relative paths in Xcode dependencies when

--generator-output= is used by adding relative projectDirPath
to the project's path, so that when...

72da30f48ee8c03c572a02bf6dadd05c0b2d31f5 authored over 15 years ago
Makefile generator: double-appended $(LIBS) the root Makefile

Included .mk files use $(LIBS) internally, so the last included file
that defines $(LIBS) actual...

392519b8e80ef7c79295fa1cdc2bab4fbb6f76c5 authored over 15 years ago
Support a --generator-output= option (and GYP_GENERATOR_OUTPUT

environment variable) to support builds with XCode and Visual
Studio project+solution files gener...

9c88b549cd9f1773ed472daa27d6cbd8bc690b41 authored over 15 years ago
Fix a test broken by the last infrastructure change.

Review URL: http://codereview.chromium.org/174257

git-svn-id: http://gyp.googlecode.com/svn/trun...

0c07868caed501592af14d8b57a54dacfd8079ea authored over 15 years ago
Add a test of handling dependency specifications in sibling directories.

Enhance the test infrastructure module to:
1) pass in the specified .gyp file when we run gyp (in...

0ad33ddd836e7f81f6e7545e4970db61a6dfe9d0 authored over 15 years ago
Fix SCons generator in the face of empty files lists.

When the list of files to copy is generated based on varables, it can
reasonably end up empty. U...

58ebefb32ca90e7bfc8adc5cdde1f2547c1155e4 authored over 15 years ago
Fixing scons generator to handle root targets that are not under src/

BUG=61
TEST=gyp-test-subdir2-deep.py

Review URL: http://codereview.chromium.org/174006

git-svn...

01002c576609b305a5d2e3c1cfe08e1767f86abc authored over 15 years ago
Fix TakeOverOnlyChild to operate on PBXGroup objects only, not subclass objects

such as PBXVariantGroup.
Review URL: http://codereview.chromium.org/172092

git-svn-id: http://gy...

2ab9bda8b8c1eff7930a2d5339c04dbf8123cb23 authored over 15 years ago
This fixes the rule generation for scons so that rules will be able to

build more than one output file on Linux.

Also, added some better error information about missin...

827ec23b96e026febbb8991651dbcecd84a48e5a authored over 15 years ago
This moves the "ExceptionAppend" method to common, and adds some extra

error output for the scons generator.

Review URL: http://codereview.chromium.org/165550

git-svn...

e162e112f7db7dca52aa668996e828315777bbaa authored over 15 years ago
Fix the DEPTH variable when --depth=. is specified on the command line (it

was set to '' instead of '.'). Use this to add explicit tests of the
<(DEPTH) idiom the Chromium...

21de15f7bb280f679dad49a99a13199f5bcca001 authored over 15 years ago
Add tests for building project hierarchies. Update the SCons test

infrastructure to find built executables in subdirectories.
Review URL: http://codereview.chromiu...

880ec408d9c22ed4fd0bab3e5f311f1189b5ff90 authored over 15 years ago
Extend the test infrastructure to take keyword arguments on all the

various build_*() methods. Execute arbitrary programs without
tacking on the full workpath so we...

2f4c534952b43b0d1c35ced25a3ace1c413e1ab1 authored over 15 years ago
This addresses issue 37 in the bug database:

http://code.google.com/p/gyp/issues/detail?id=37

This adds the capability to gyp to reference v...

47d09f2c7a65b7fda19b80a3bb54cad3c14a8bf7 authored over 15 years ago
Fix gyp when GYP_GENERATORS is set

(Submitted for piman) for review 164367.

BUG=None
TEST=None
TBR=piman

Review URL: http://code...

1d6f22598b0995cbe4696d0fdc403a0ea7e538c5 authored over 15 years ago
The gyp msvs generator was not properly emitting dependencies for rules

with the makefile option turned on (webcore).
The custom build step that was created should have ...

168f3d61d13f0dd3221256356ac0c7cbcfa637e5 authored over 15 years ago
Allow GYP_GENERATORS to be comma or white-space separated.

Review URL: http://codereview.chromium.org/165244

git-svn-id: http://gyp.googlecode.com/svn/trun...

3c044d16f852be036bb8bb71e55fde45b01946cd authored over 15 years ago
Get rid of the hard-coded chromium_builders tool reference.

Add support for a 'tools' value in the 'scons_settings' dict to
give the GYP configuration contro...

e6fe270d86d62afea50dc996afe5186528706a06 authored over 15 years ago
Fix the expected output from the variable test.

Review URL: http://codereview.chromium.org/164212

git-svn-id: http://gyp.googlecode.com/svn/trun...

79eb356eaa3ad458c3e8b5002e94c79b54d7a39e authored over 15 years ago
Explicitly set SYMROOT= when running xcodebuild so tests can't

fail based on user settings.
Review URL: http://codereview.chromium.org/165179

git-svn-id: http:...

bee6085e129ff31f09febc4b56d8991a425a00d0 authored over 15 years ago
Fix the shared library test on Linux; compile and link with -m32.

Review URL: http://codereview.chromium.org/165160

git-svn-id: http://gyp.googlecode.com/svn/trun...

3bf51046f4f9be6124c2ef256d0b838eb95bad83 authored over 15 years ago
Have the gyptest.py wrapper find and execute tests in specified

subdirectories, to restrict execution to reasonable subsets
without having to glob by hand.
Revie...

424ea5d24d20453e681b333dd1dd452c832a3c9f authored over 15 years ago
This fixes a bug in recursive variable expansion when

there is more than one variable to expand.

Modified test to test for this condition.
Review URL:...

71d52d948a3b103f11d1474e5a17fc21dda099e6 authored over 15 years ago
Make (most of) the SCons generator hermetic: pull the Chromium*()

methods into the generated *_main.scons (plus subsidiary functions),
and rename them to Gyp*(). ...

e4802b977e8a029631dfd425fef10d63147e156b authored over 15 years ago
Add a simple test of static and shared libraries.

Update the test execution infrastructure to set {DYLD,LD}_LIBRARY_PATH
for the benefit of executi...

5ea4dad540d8385c12c322ef95cedd87c16aef0a authored over 15 years ago
Found the performance bottleneck in the MSVSProject emitter.

It was doing a linear search over and over, instead of using a dict.
It was taking 1m42s to gener...

6693a96c6f559bfe4a00922e1f54d752a5c8cbe9 authored over 15 years ago
Add some more quoting for defines that have double quotes, since XCode was splitting them into separate lines.

Review URL: http://codereview.chromium.org/160456

git-svn-id: http://gyp.googlecode.com/svn/trun...

e8db48c52a4ed5df520e472193d54674b681e9d4 authored over 15 years ago
Handle % in variables subdicts of variables dicts.

Review URL: http://codereview.chromium.org/160595

git-svn-id: http://gyp.googlecode.com/svn/trun...

549e2fccc6e5a7fc2ba283ee48ae75d0ef825efd authored over 15 years ago
Removing empty directories

git-svn-id: http://gyp.googlecode.com/svn/trunk@577 78cadc50-ecff-11dd-a971-7dbc132099af

2dedb2908903e9e1464def6967d12db170822aec authored over 15 years ago
Makefile generator: use different names for intermediate dirs

Works around a gyp bug.

git-svn-id: http://gyp.googlecode.com/svn/trunk@576 78cadc50-ecff-11dd-...

7dbf6491e2d99d994663985aef41e80583c65879 authored over 15 years ago
Convert the command variable expansions test (tests/test1) to the new

gyptest.py infrastructure. Expected debug standard output moves into the
test script in-line. A...

45dccadfea1854017abd8c47aa1728572a656135 authored over 15 years ago
Makefile generator: build directly into product_dir, if available.

git-svn-id: http://gyp.googlecode.com/svn/trunk@574 78cadc50-ecff-11dd-a971-7dbc132099af

b36f4e4101e3f1d3fe9233c9dcde6130e2680bce authored over 15 years ago
Fix automatic dependency linking to automatically link against frameworks

('type': 'shared_library', 'mac_bundle': 1)
Review URL: http://codereview.chromium.org/160534

gi...

b4e0ef7a4651fd4891cc616027520724cd25f907 authored over 15 years ago
Makefile generator: escape single quotes when storing command lines.

This fixes a problem where we lose quotes in processing command lines,
which meant that if your ...

ab2b8f0793e3b10ab1301c0a98aa44e1be6f076c authored over 15 years ago
Make generators robust in the face of generator_flags being defined.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/159792

git-svn-id: http://gyp.goog...

62cccaf64f861d4a96f48c759ecbf476e9289bf1 authored over 15 years ago
Remove test/hello/site_scons (inadvertently restored by "svn up"

prior to submitting the previous CL).

git-svn-id: http://gyp.googlecode.com/svn/trunk@570 78cad...

017bc08501ffe50e61362b48c3597d5901acf72f authored over 15 years ago
Add rudimentary tests of 'defines' and 'configurations'.

Fix the make generator so that "all" is the default Make target
(i.e. what gets built if you don'...

a12a9556125cf18f0c09b77a7721097e26d200d4 authored over 15 years ago
Adding the option for generators to provide variables based on options

passed into gyp or decided at gyp-time.
Added the following:
MSVS_OS_BITS = 32/64
MSVS_VERSION = ...

40ac74c52f7dde42b0e9310eb975c7d63a2eb437 authored over 15 years ago
Instead of using a hard-coded default configuraition name, use the

specified 'default_configuration'. For now, arbitrarily use the first
one that wasn't left as 'D...

d7162595c5346f6bb65106beacbb669acda49e87 authored over 15 years ago
This makes the path for executing a test more strictly correct.

Review URL: http://codereview.chromium.org/159702

git-svn-id: http://gyp.googlecode.com/svn/trun...

35791bc83d80ece203bd9929bdf121f3b2c903f2 authored over 15 years ago
This removes the deprecated module "sets" and replaces the one use with a dict.

Also, fixes a minor bug in run_tests where it didn't print the stderr.
Review URL: http://coderev...

33d0f7ef6994003838f7d308e922616f5adad774 authored over 15 years ago
This changes variable expansion so that it is recursive.

For instance, now you can write <(foo <(bar)) and it will work
correctly.
I added a debugging swi...

9def40ccb23ce0a125b35719650a16cbb4c2f22f authored over 15 years ago
Makefile generator: fix relative paths to submakefiles

gyp can be ran from a directory other than the source root.
The relative paths we put into the r...

baa09c7d913efdf9f53fcc6b5a9859875587d660 authored over 15 years ago
Test infrastructure for end-to-end tests of GYP generators, and

initial tests of building a simple "Hello, world!" executable.
Review URL: http://codereview.chro...

81ac0047a01ca7d34b493fba09e7fd6a5acf09c5 authored over 15 years ago
Makefile generator: make outputs depend on command-lines used for generation

This is also cribbed from the Linux kernel Makefile system.

The basic mechanism is this:
- all ...

24cc83cd5dbb7133eea88d2fa229bd7f4c434e35 authored over 15 years ago
Makefile generator: double-backslash to escape through Python string

git-svn-id: http://gyp.googlecode.com/svn/trunk@558 78cadc50-ecff-11dd-a971-7dbc132099af

4c55d78ac2120e948aa9d3d21b02037e507a4418 authored over 15 years ago
Makefile generator: fix some obsolete comments.

git-svn-id: http://gyp.googlecode.com/svn/trunk@557 78cadc50-ecff-11dd-a971-7dbc132099af

73228d42bb14cb7f008f0761be9eaa2a09e6fe3e authored over 15 years ago
Trying again, after fixing problem with replacement string size, to submit

nested command variable change from r523 that was rolled back. Tested
with test case on Linux, M...

c13918f888354b5423d77d2e7c822949f65e2554 authored over 15 years ago
Makefile generator: it appears we don't need absolute gyp paths.

Review URL: http://codereview.chromium.org/159349

git-svn-id: http://gyp.googlecode.com/svn/tru...

d56dad8b45a27e6357b46be4647282d54f03e0ce authored over 15 years ago
Adding msvs_system_include_dirs to allow some include directories to go

absolutely last.

BUG=None
TEST=None
TBR=sgk

Review URL: http://codereview.chromium.org/155811
...

583b70e83060e5f9b7b71595b7d3e531966e1a2b authored over 15 years ago
Adding a hook to disable OutputFile selection in the msvs generator.

Adding a hook to select an alternate output directory in the msvs generator.

BUG=50
BUG=51
TEST=...

d0b44297978c2c813e3b2d6f1e72229f27306c43 authored over 15 years ago
Adding a <(CONFIGURATION_NAME) gyp variable which contain the current

configuration on each platform (Debug/Release).

BUG=52
TEST=None

Review URL: http://codereview...

2c9e8675a425664fcc6fa1038c20dae9f2138af3 authored over 15 years ago
If we use the env var for starter files, split it so it can be more then one file.

Review URL: http://codereview.chromium.org/149697

git-svn-id: http://gyp.googlecode.com/svn/trun...

a694f2655e709f160b6b6eeebe816d93cc8e5033 authored over 15 years ago
Rename dogfood to chromium since it is chromium specific.

Review URL: http://codereview.chromium.org/149691

git-svn-id: http://gyp.googlecode.com/svn/trun...

003b62647fcd0547df8b4ba7ab5afbbc5b01afe0 authored over 15 years ago
Support being invoked without any file and check an env var and then fall back to a canned default.

Review URL: http://codereview.chromium.org/155519

git-svn-id: http://gyp.googlecode.com/svn/trun...

4a79ec9c49997782ef47e5f373530d20775d204e authored over 15 years ago