[Rom Size] Refactor tizen GN build
[platform/framework/web/chromium-efl.git] / tizen_src / build / config / compiler / BUILD.gn
1 # Copyright (c) 2015 Samsung Electronics. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import("//build/config/features.gni")
6
7 declare_args() {
8   if (is_tizen) {
9     deps_include_path = "/usr/include"
10     deps_lib_path = "/usr/lib"
11   } else {
12     deps_include_path = ""
13     deps_lib_path = ""
14   }
15 }
16
17 config("tizen_default_include_dirs") {
18   include_dirs = [
19     "//tizen_src",
20     "//tizen_src/chromium_impl",
21     "//tizen_src/ecore_wrapper",
22
23     "//third_party/blink/renderer",
24
25     deps_include_path,
26
27     # find / -name *.h -printf '%h\n' | sort --unique
28     "$deps_include_path/dbus-1.0",
29     "$deps_include_path/ecore-1",
30     "$deps_include_path/ecore-audio-1",
31     "$deps_include_path/ecore-audio-cxx-1",
32     "$deps_include_path/ecore-avahi-1",
33     "$deps_include_path/ecore-con-1",
34     "$deps_include_path/ecore-cxx-1",
35     "$deps_include_path/ecore-evas-1",
36     "$deps_include_path/ecore-file-1",
37     "$deps_include_path/ecore-imf-1",
38     "$deps_include_path/ecore-imf-evas-1",
39     "$deps_include_path/ecore-input-1",
40     "$deps_include_path/ecore-input-evas-1",
41     "$deps_include_path/ecore-ipc-1",
42     "$deps_include_path/ecore-x-1",
43     "$deps_include_path/ector-1",
44     "$deps_include_path/ector-1/cairo",
45     "$deps_include_path/ector-1/generic",
46     "$deps_include_path/ector-1/software",
47     "$deps_include_path/edje-1",
48     "$deps_include_path/eet-1",
49     "$deps_include_path/eet-cxx-1",
50     "$deps_include_path/eet-cxx-1/eet-cxx",
51     "$deps_include_path/eeze-1",
52     "$deps_include_path/efl-1",
53     "$deps_include_path/efl-1/interfaces",
54     "$deps_include_path/efl-cxx-1",
55     "$deps_include_path/efreet-1",
56     "$deps_include_path/eina-1",
57     "$deps_include_path/eina-1/eina",
58     "$deps_include_path/eina-cxx-1",
59     "$deps_include_path/eina-cxx-1/eina-cxx",
60     "$deps_include_path/eio-1",
61     "$deps_include_path/eio-cxx-1",
62     "$deps_include_path/eldbus-1",
63     "$deps_include_path/eldbus_cxx-1",
64     "$deps_include_path/elementary-1",
65     "$deps_include_path/elementary-cxx-1",
66     "$deps_include_path/elocation-1",
67     "$deps_include_path/elua-1",
68     "$deps_include_path/embryo-1",
69     "$deps_include_path/emile-1",
70     "$deps_include_path/emotion-1",
71     "$deps_include_path/eo-1",
72     "$deps_include_path/eo-cxx-1",
73     "$deps_include_path/eolian-1",
74     "$deps_include_path/eolian-cxx-1",
75     "$deps_include_path/eolian-cxx-1/grammar",
76     "$deps_include_path/ethumb-1",
77     "$deps_include_path/ethumb-client-1",
78     "$deps_include_path/evas-1",
79     "$deps_include_path/evas-1/canvas",
80     "$deps_include_path/evas-cxx-1",
81     "$deps_include_path/evas-cxx-1/canvas",
82     "$deps_include_path/gio-unix-2.0",
83     "$deps_include_path/gio-unix-2.0/gio",
84     "$deps_include_path/glib-2.0",
85     "$deps_include_path/glib-2.0/gio",
86     "$deps_include_path/glib-2.0/glib",
87     "$deps_include_path/glib-2.0/glib/deprecated",
88     "$deps_include_path/glib-2.0/gobject",
89     "$deps_include_path/gstreamer-1.0",
90     "$deps_include_path/gstreamer-1.0/gst",
91     "$deps_include_path/gstreamer-1.0/gst/allocators",
92     "$deps_include_path/gstreamer-1.0/gst/app",
93     "$deps_include_path/gstreamer-1.0/gst/audio",
94     "$deps_include_path/gstreamer-1.0/gst/base",
95     "$deps_include_path/gstreamer-1.0/gst/basecamerabinsrc",
96     "$deps_include_path/gstreamer-1.0/gst/check",
97     "$deps_include_path/gstreamer-1.0/gst/codecparsers",
98     "$deps_include_path/gstreamer-1.0/gst/controller",
99     "$deps_include_path/gstreamer-1.0/gst/egl",
100     "$deps_include_path/gstreamer-1.0/gst/fft",
101     "$deps_include_path/gstreamer-1.0/gst/insertbin",
102     "$deps_include_path/gstreamer-1.0/gst/interfaces",
103     "$deps_include_path/gstreamer-1.0/gst/mpegts",
104     "$deps_include_path/gstreamer-1.0/gst/net",
105     "$deps_include_path/gstreamer-1.0/gst/pbutils",
106     "$deps_include_path/gstreamer-1.0/gst/riff",
107     "$deps_include_path/gstreamer-1.0/gst/rtp",
108     "$deps_include_path/gstreamer-1.0/gst/rtsp",
109     "$deps_include_path/gstreamer-1.0/gst/sdp",
110     "$deps_include_path/gstreamer-1.0/gst/tag",
111     "$deps_include_path/gstreamer-1.0/gst/uridownloader",
112     "$deps_include_path/gstreamer-1.0/gst/video",
113     "$deps_include_path/libsoup-2.4",
114     "$deps_include_path/libsoup-2.4/libsoup",
115     "$deps_include_path/orc-0.4",
116     "$deps_include_path/orc-0.4/orc",
117     "$deps_include_path/orc-0.4/orc-test",
118   ]
119
120   if (is_tizen) {
121     include_dirs += [
122       "$deps_include_path/appfw",
123       "$deps_include_path/system",
124
125       "$deps_lib_path/dbus-1.0/include",
126       "$deps_lib_path/gstreamer-1.0/include",
127       "$deps_lib_path/gstreamer-1.0/include/gst",
128     ]
129   }
130 }