import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo

This commit is contained in:
Roy Tam 2018-01-19 03:59:58 +08:00
commit dcd9973243
150858 changed files with 23884658 additions and 0 deletions

View file

@ -0,0 +1,14 @@
# Copyright (c) 2011 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',
'type': 'executable',
'sources': [ 'main.cc', ],
'msvs_prebuild': r'echo starting',
'msvs_postbuild': r'echo finished',
},
],
}

View file

@ -0,0 +1,24 @@
#!/usr/bin/env python
# Copyright (c) 2011 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 msvs_prebuild and msvs_postbuild can be specified in both
VS 2008 and 2010.
"""
import TestGyp
test = TestGyp.TestGyp(formats=['msvs'], workdir='workarea_all')
test.run_gyp('buildevents.gyp', '-G', 'msvs_version=2008')
test.must_contain('main.vcproj', 'Name="VCPreBuildEventTool"')
test.must_contain('main.vcproj', 'Name="VCPostBuildEventTool"')
test.run_gyp('buildevents.gyp', '-G', 'msvs_version=2010')
test.must_contain('main.vcxproj', '<PreBuildEvent>')
test.must_contain('main.vcxproj', '<PostBuildEvent>')
test.pass_test()

View file

@ -0,0 +1,29 @@
#!/usr/bin/env python
# Copyright (c) 2014 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 ninja errors out when encountering msvs_prebuild/msvs_postbuild.
"""
import sys
import TestCmd
import TestGyp
if sys.platform == 'win32':
test = TestGyp.TestGyp(formats=['ninja'])
test.run_gyp('buildevents.gyp',
status=1,
stderr=r'.*msvs_prebuild not supported \(target main\).*',
match=TestCmd.match_re_dotall)
test.run_gyp('buildevents.gyp',
status=1,
stderr=r'.*msvs_postbuild not supported \(target main\).*',
match=TestCmd.match_re_dotall)
test.pass_test()

View file

@ -0,0 +1,5 @@
// Copyright (c) 2014 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.
int main() {}