Revision: 2576
Author:
ls...@google.com
Date: Fri Apr 11 19:59:34 2014 UTC
Log: fix build
http://code.google.com/p/page-speed/source/detail?r=2576
Added:
/firefox_addon/tags/page-speed-1.12.9.2/src/build/dir_exists.py
/firefox_addon/tags/page-speed-1.12.9.2/src/build/psff_overrides.gypi
=======================================
--- /dev/null
+++ /firefox_addon/tags/page-speed-1.12.9.2/src/build/dir_exists.py Fri Apr
11 19:59:34 2014 UTC
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+
+# Copyright 2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#
http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This script is wrapper for the Chromium version of dir_exists.py.
+
+import os
+
+script_dir = os.path.dirname(__file__)
+chrome_src = os.path.normpath(os.path.join(script_dir,
os.pardir, 'third_party', 'chromium', 'src'))
+
+execfile(os.path.join(chrome_src, 'build', 'dir_exists.py'))
=======================================
--- /dev/null
+++ /firefox_addon/tags/page-speed-1.12.9.2/src/build/psff_overrides.gypi
Fri Apr 11 19:59:34 2014 UTC
@@ -0,0 +1,69 @@
+# Copyright 2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#
http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+{
+ 'variables': {
+ 'conditions': [
+ ['OS=="win"', {
+ 'xpcom_os': 'WINNT',
+ 'xpcom_compiler_abi': 'msvc',
+ }],
+ ['OS=="linux"', {
+ 'xpcom_os': 'Linux',
+ 'xpcom_compiler_abi': 'gcc3',
+ }],
+ ['OS=="mac"', {
+ 'xpcom_os': 'Darwin',
+ 'xpcom_compiler_abi': 'gcc3',
+ }],
+ ['target_arch=="ia32"', {
+ 'xpcom_cpu_arch': 'x86',
+ }],
+ ['target_arch=="x64"', {
+ 'xpcom_cpu_arch': 'x86_64',
+ }],
+ ],
+
+ 'variables': {
+ # Version of xulrunner SDK we build against.
+ 'xulrunner_sdk_version%': 2,
+ },
+
+ # Semi-recent versions of Firefox (through 16) target OS X 10.5,
+ # so we do the same.
+ 'mac_deployment_target': '10.5',
+
+ 'xulrunner_sdk_version%': '<(xulrunner_sdk_version)',
+
+ # Make sure we link statically so everything gets linked into a
+ # single shared object.
+ 'library': 'static_library',
+
+ # We're building a shared library, so everything needs to be built
+ # with Position-Independent Code.
+ 'linux_fpic': 1,
+ },
+ 'conditions': [
+ [ 'OS=="mac" and target_arch=="x64"', {
+ 'target_defaults': {
+ 'xcode_settings': {
+ 'ARCHS': 'x86_64',
+ 'OTHER_CFLAGS': [
+ '-fPIC',
+ ]
+ }
+ }
+ }]
+ ]
+}