[M85 Migration][Clang] Upgrade llvm 7.0 to a higher version(11.0)
[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 import("//tizen_src/build/config/tizen_features.gni")
7
8 declare_args() {
9   if (is_tizen) {
10     deps_include_path = "/usr/include"
11     deps_lib_path = "/usr/lib"
12   } else {
13     deps_include_path = ""
14     deps_lib_path = ""
15   }
16 }
17
18 config("tizen_default_include_dirs") {
19   include_dirs = [
20     "//tizen_src",
21     "//tizen_src/chromium_impl",
22     "//tizen_src/ecore_wrapper",
23
24     "//third_party/blink/renderer",
25
26     deps_include_path,
27
28     # find / -name *.h -printf '%h\n' | sort --unique
29     "$deps_include_path/dbus-1.0",
30     "$deps_include_path/ecore-1",
31     "$deps_include_path/ecore-audio-1",
32     "$deps_include_path/ecore-audio-cxx-1",
33     "$deps_include_path/ecore-avahi-1",
34     "$deps_include_path/ecore-con-1",
35     "$deps_include_path/ecore-cxx-1",
36     "$deps_include_path/ecore-evas-1",
37     "$deps_include_path/ecore-file-1",
38     "$deps_include_path/ecore-imf-1",
39     "$deps_include_path/ecore-imf-evas-1",
40     "$deps_include_path/ecore-input-1",
41     "$deps_include_path/ecore-input-evas-1",
42     "$deps_include_path/ecore-ipc-1",
43     "$deps_include_path/ecore-x-1",
44     "$deps_include_path/ector-1",
45     "$deps_include_path/ector-1/cairo",
46     "$deps_include_path/ector-1/generic",
47     "$deps_include_path/ector-1/software",
48     "$deps_include_path/edje-1",
49     "$deps_include_path/eet-1",
50     "$deps_include_path/eet-cxx-1",
51     "$deps_include_path/eet-cxx-1/eet-cxx",
52     "$deps_include_path/eeze-1",
53     "$deps_include_path/efl-1",
54     "$deps_include_path/efl-1/interfaces",
55     "$deps_include_path/efl-cxx-1",
56     "$deps_include_path/efreet-1",
57     "$deps_include_path/eina-1",
58     "$deps_include_path/eina-1/eina",
59     "$deps_include_path/eina-cxx-1",
60     "$deps_include_path/eina-cxx-1/eina-cxx",
61     "$deps_include_path/eio-1",
62     "$deps_include_path/eio-cxx-1",
63     "$deps_include_path/eldbus-1",
64     "$deps_include_path/eldbus_cxx-1",
65     "$deps_include_path/elementary-1",
66     "$deps_include_path/elementary-cxx-1",
67     "$deps_include_path/elocation-1",
68     "$deps_include_path/elua-1",
69     "$deps_include_path/embryo-1",
70     "$deps_include_path/emile-1",
71     "$deps_include_path/emotion-1",
72     "$deps_include_path/eo-1",
73     "$deps_include_path/eo-cxx-1",
74     "$deps_include_path/eolian-1",
75     "$deps_include_path/eolian-cxx-1",
76     "$deps_include_path/eolian-cxx-1/grammar",
77     "$deps_include_path/ethumb-1",
78     "$deps_include_path/ethumb-client-1",
79     "$deps_include_path/evas-1",
80     "$deps_include_path/evas-1/canvas",
81     "$deps_include_path/evas-cxx-1",
82     "$deps_include_path/evas-cxx-1/canvas",
83     "$deps_include_path/gio-unix-2.0",
84     "$deps_include_path/gio-unix-2.0/gio",
85     "$deps_include_path/glib-2.0",
86     "$deps_include_path/glib-2.0/gio",
87     "$deps_include_path/glib-2.0/glib",
88     "$deps_include_path/glib-2.0/glib/deprecated",
89     "$deps_include_path/glib-2.0/gobject",
90     "$deps_include_path/gstreamer-1.0",
91     "$deps_include_path/gstreamer-1.0/gst",
92     "$deps_include_path/gstreamer-1.0/gst/allocators",
93     "$deps_include_path/gstreamer-1.0/gst/app",
94     "$deps_include_path/gstreamer-1.0/gst/audio",
95     "$deps_include_path/gstreamer-1.0/gst/base",
96     "$deps_include_path/gstreamer-1.0/gst/basecamerabinsrc",
97     "$deps_include_path/gstreamer-1.0/gst/check",
98     "$deps_include_path/gstreamer-1.0/gst/codecparsers",
99     "$deps_include_path/gstreamer-1.0/gst/controller",
100     "$deps_include_path/gstreamer-1.0/gst/egl",
101     "$deps_include_path/gstreamer-1.0/gst/fft",
102     "$deps_include_path/gstreamer-1.0/gst/insertbin",
103     "$deps_include_path/gstreamer-1.0/gst/interfaces",
104     "$deps_include_path/gstreamer-1.0/gst/mpegts",
105     "$deps_include_path/gstreamer-1.0/gst/net",
106     "$deps_include_path/gstreamer-1.0/gst/pbutils",
107     "$deps_include_path/gstreamer-1.0/gst/riff",
108     "$deps_include_path/gstreamer-1.0/gst/rtp",
109     "$deps_include_path/gstreamer-1.0/gst/rtsp",
110     "$deps_include_path/gstreamer-1.0/gst/sdp",
111     "$deps_include_path/gstreamer-1.0/gst/tag",
112     "$deps_include_path/gstreamer-1.0/gst/uridownloader",
113     "$deps_include_path/gstreamer-1.0/gst/video",
114     "$deps_include_path/libsoup-2.4",
115     "$deps_include_path/libsoup-2.4/libsoup",
116     "$deps_include_path/orc-0.4",
117     "$deps_include_path/orc-0.4/orc",
118     "$deps_include_path/orc-0.4/orc-test",
119   ]
120
121   if (is_tizen) {
122     include_dirs += [
123       "$deps_include_path/appfw",
124       "$deps_include_path/system",
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       "//third_party/perfetto/include",
129     ]
130     if (is_clang) {
131       include_dirs += [
132         "$tizen_clang_base_path/lib/clang/11.0.0/include",
133         "$deps_lib_path/gcc/armv7l-tizen-linux-gnueabi/$gcc_ver/include/c++",
134         "$deps_lib_path/gcc/armv7l-tizen-linux-gnueabi/$gcc_ver/include/c++/armv7l-tizen-linux-gnueabi",
135       ]
136     }
137   }
138 }