summaryrefslogtreecommitdiff
path: root/chromium/tools/gn/secondary/build/config/linux
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/tools/gn/secondary/build/config/linux')
-rw-r--r--chromium/tools/gn/secondary/build/config/linux/BUILD.gn14
-rw-r--r--chromium/tools/gn/secondary/build/config/linux/system/BUILD.gn31
-rw-r--r--chromium/tools/gn/secondary/build/config/linux/system/pkg-config.py8
-rw-r--r--chromium/tools/gn/secondary/build/config/linux/toolchain/BUILD.gn47
4 files changed, 0 insertions, 100 deletions
diff --git a/chromium/tools/gn/secondary/build/config/linux/BUILD.gn b/chromium/tools/gn/secondary/build/config/linux/BUILD.gn
deleted file mode 100644
index 74804cb483a..00000000000
--- a/chromium/tools/gn/secondary/build/config/linux/BUILD.gn
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Sets up the dynamic library search path to include our "lib" directory.
-config("executable_ldconfig") {
- ldflags = [
- # Want to pass "\$". Need to escape both '\' and '$'. GN will re-escape as
- # required for ninja.
- "-Wl,-rpath=\\\$ORIGIN/lib/",
-
- "-Wl,-rpath-link=lib/",
- ]
-}
diff --git a/chromium/tools/gn/secondary/build/config/linux/system/BUILD.gn b/chromium/tools/gn/secondary/build/config/linux/system/BUILD.gn
deleted file mode 100644
index 3cecca8d4b3..00000000000
--- a/chromium/tools/gn/secondary/build/config/linux/system/BUILD.gn
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-pkg_script = "pkg-config.py"
-
-config("glib") {
- glib_packages = "glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0"
-
- cflags = exec_script(pkg_script, [ "--cflags", glib_packages ], "list lines")
- ldflags = exec_script(pkg_script, [ "--libs", glib_packages ], "list lines")
- # if (use_x11) { # TODO(brettw) need to add use_x11
- ldflags += "-lXtst"
- #}
-}
-
-config("gtk") {
- # Gtk requires gmodule, but it does not list it as a dependency in some
- # misconfigured systems.
- gtk_packages = "gmodule-2.0 gtk+-2.0 gthread-2.0"
-
- cflags = exec_script(pkg_script, [ "--cflags", gtk_packages ], "list lines")
- ldflags = exec_script(pkg_script, [ "--libs", gtk_packages ], "list lines")
-}
-
-config("x11") {
- x11_packages = "x11 xi"
-
- cflags = exec_script(pkg_script, [ "--cflags", x11_packages ], "list lines")
- ldflags = exec_script(pkg_script, [ "--libs", x11_packages ], "list lines")
-}
diff --git a/chromium/tools/gn/secondary/build/config/linux/system/pkg-config.py b/chromium/tools/gn/secondary/build/config/linux/system/pkg-config.py
deleted file mode 100644
index 1cee44883e1..00000000000
--- a/chromium/tools/gn/secondary/build/config/linux/system/pkg-config.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import subprocess
-import sys
-
-sys.exit(subprocess.call(["pkg-config"] + sys.argv[1:]))
diff --git a/chromium/tools/gn/secondary/build/config/linux/toolchain/BUILD.gn b/chromium/tools/gn/secondary/build/config/linux/toolchain/BUILD.gn
deleted file mode 100644
index b3aed22e450..00000000000
--- a/chromium/tools/gn/secondary/build/config/linux/toolchain/BUILD.gn
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-cc = "gcc"
-cxx = "g++"
-ld = cxx
-
-toolchain("gcc") {
- tool("cc") {
- # cflags_pch_c
- command = "$cc -MMD -MF \$out.d \$defines \$includes \$cflags \$cflags_c -c \$in -o \$out"
- description = "CC \$out"
- depfile = "\$out.d"
- deps = "gcc"
- }
- tool("cxx") {
- # cflags_pch_cc
- command = "$cxx -MMD -MF \$out.d \$defines \$includes \$cflags \$cflags_cc -c \$in -o \$out"
- description = "CXX \$out"
- depfile = "\$out.d"
- deps = "gcc"
- }
- tool("alink") {
- command = "rm -f \$out && ar rcs \$out \$in"
- description = "AR \$out"
- }
- tool("solink") {
- command = "if [ ! -e \$lib -o ! -e \${lib}.TOC ]; then $ld -shared \$ldflags -o \$lib -Wl,-soname=\$soname -Wl,--whole-archive \$in \$solibs -Wl,--no-whole-archive \$libs && { readelf -d \${lib} | grep SONAME ; nm -gD -f p \${lib} | cut -f1-2 -d' '; } > \${lib}.TOC; else $ld -shared \$ldflags -o \$lib -Wl,-soname=\$soname -Wl,--whole-archive \$in \$solibs -Wl,--no-whole-archive \$libs && { readelf -d \${lib} | grep SONAME ; nm -gD -f p \${lib} | cut -f1-2 -d' '; } > \${lib}.tmp && if ! cmp -s \${lib}.tmp \${lib}.TOC; then mv \${lib}.tmp \${lib}.TOC ; fi; fi"
- description = "SOLINK \$lib"
- #pool = "link_pool"
- restat = "1"
- }
- tool("link") {
- command = "$ld \$ldflags -o \$out -Wl,--start-group \$in \$solibs -Wl,--end-group \$libs"
- description = "LINK \$out"
- #pool = "link_pool"
- }
- tool("stamp") {
- command = "\${postbuilds}touch \$out"
- description = "STAMP \$out"
- }
- tool("copy") {
- command = "ln -f \$in \$out 2>/dev/null || (rm -rf \$out && cp -af \$in \$out)"
- description = "COPY \$in \$out"
- }
-}