mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 22:37:29 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Copyright (c) 2013 Google Inc. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
"""
|
||||
Verifies that rules which use built dependencies work correctly.
|
||||
"""
|
||||
|
||||
import TestGyp
|
||||
|
||||
test = TestGyp.TestGyp()
|
||||
|
||||
test.run_gyp('use-built-dependencies-rule.gyp', chdir='src')
|
||||
|
||||
test.relocate('src', 'relocate/src')
|
||||
test.build('use-built-dependencies-rule.gyp', chdir='relocate/src')
|
||||
|
||||
test.built_file_must_exist('main_output', chdir='relocate/src')
|
||||
test.built_file_must_match('main_output', 'output', chdir='relocate/src')
|
||||
|
||||
test.pass_test()
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
// Copyright (c) 2013 Google Inc. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if (argc < 2) {
|
||||
return 2;
|
||||
}
|
||||
FILE* file;
|
||||
file = fopen(argv[1], "wb");
|
||||
const char output[] = "output";
|
||||
fwrite(output, 1, sizeof(output) - 1, file);
|
||||
fclose(file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
# Copyright (c) 2013 Google Inc. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'main',
|
||||
'toolsets': ['host'],
|
||||
'type': 'executable',
|
||||
'sources': [
|
||||
'main.cc',
|
||||
],
|
||||
},
|
||||
{
|
||||
'target_name': 'post',
|
||||
'toolsets': ['host'],
|
||||
'type': 'none',
|
||||
'dependencies': [
|
||||
'main',
|
||||
],
|
||||
'sources': [
|
||||
# As this test is written it could easily be made into an action.
|
||||
# An acutal use case would have a number of these 'sources'.
|
||||
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)main<(EXECUTABLE_SUFFIX)',
|
||||
],
|
||||
'rules': [
|
||||
{
|
||||
'rule_name': 'generate_output',
|
||||
'extension': '<(EXECUTABLE_SUFFIX)',
|
||||
'outputs': [ '<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)_output', ],
|
||||
'msvs_cygwin_shell': 0,
|
||||
'action': [
|
||||
'<(RULE_INPUT_PATH)',
|
||||
'<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)_output',
|
||||
],
|
||||
'message': 'Generating output for <(RULE_INPUT_ROOT)'
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue