Add -frecord-gcc-switches to the global cflags
[scm/meta/obs.git] / Tizen:3.0:Mobile / _config
1 ################################################################################
2 # OBS Project config for Tizen:Mobile
3 #
4 # RE contacts:
5 #
6 # vim: set syntax=spec:
7 ################################################################################
8
9 ############################# conflicts resolution #############################
10
11 FileProvides: /usr/sbin/groupadd shadow-utils
12 Prefer: libtapi-devel
13 Prefer: libpci-devel
14 Prefer: bluetooth-tools-no-firmware
15
16 ############################# profile definition ###############################
17
18 %define profile mobile
19 %define _with_tizen 1
20
21 # For classifying debug/release mode
22 Macros:
23 %tizen_build_devel_mode 1
24 :Macros
25
26 # %release_name and %tizen_full_version are used in platform/upstream/tizen-release
27
28 Macros:
29 %profile mobile
30 %release_name Tizen3/Mobile
31
32 %tizen_version_major 3
33 %tizen_version_minor 0
34 %tizen_version_patch 0
35
36 %tizen_version %{tizen_version_major}.%{tizen_version_minor}
37 %tizen_full_version %{tizen_version}.%{tizen_version_patch}
38 %tizen %tizen_version
39 %vendor tizen
40 %_vendor tizen
41 %_with_tizen 1
42
43 %check exit 0
44 %run_check_section 0
45 %opensuse_bs 1
46 %_default_patch_fuzz   2
47 :Macros
48
49 ############################# display system ###################################
50
51 ########## display system selection ##########
52
53 # selection of the display system
54 # this selection is done for each repository
55 #
56 # flags combinations:
57 # |----------------------------------------------------
58 # | wayland |  x  | meaning
59 # |----------------------------------------------------
60 # |         |  1  | pure X11 platform(no wayland)
61 # |   1     |     | pure wayland platform (no X11)
62 # |   1     |  1  | wayland but X compatibility
63 # |         |     | no X and no wayland
64 # |----------------------------------------------------
65 #
66 # Owner: Stephane <stephane.desneux@open.eurogiciel.org>
67
68 ########## RDP flag ##########
69
70 # enable/disable RDP (remote desktop protocol) for wayland
71 # flag: _with_rdp, used in repositories
72 # Affects: weston, freerdp
73 # Owner: Manuel <manuel.bachmann@open.eurogiciel.org>
74
75 ########## mesa activation ##########
76
77 %define _with_mesa 1
78 Macros:
79 %_with_mesa 1
80 :Macros
81
82 %ifarch %arm armv7l aarch64
83    Substitute: mesa-devel pkgconfig(glesv2)
84    #FIXME Substitute: pkgconfig(egl)
85 %endif
86
87 ########## coregl ##########
88 %ifarch %arm aarch64
89 Prefer: coregl coregl-devel
90 Prefer: libwayland-egl libwayland-egl-devel
91 Substitute: mesa-libGLESv2 coregl
92 Substitute: mesa-libEGL coregl
93 %endif
94
95 ###################### Activate KDBUS ######################
96 # This configuration flag enables the support of KDBUS and Cynara-based Dbus Policy
97
98 #%if "%_repository" == "arm64-wayland"
99
100 #%define _with_kdbus 1
101 #%define _with_dbuspolicy 1
102
103 #Macros:
104 #%_with_kdbus 1
105 #%_with_dbuspolicy 1
106 #:Macros
107
108 #%endif
109
110 ############################# wayland repositories #############################
111
112 %if "%_repository" == "atom-wayland" || "%_repository" == "x86_64-wayland" || "%_repository" == "arm-wayland" || "%_repository" == "arm64-wayland" || "%_repository" == "target-TM1"
113
114 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
115 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
116
117 %define _with_wayland 1
118 %define _with_rdp 1
119
120 Macros:
121 %_with_wayland 1
122 %_with_rdp 1
123 :Macros
124
125 %endif
126
127 ############################# emulator repositories ############################
128
129 %if "%_repository" == "emulator32-wayland" || "%_repository" == "emulator64-wayland"
130
131 Substitute: mesa-devel pkgconfig(glesv2)
132
133 Substitute: pkgconfig(gles20)  pkgconfig(egl) pkgconfig(glesv2)
134 Substitute: pkgconfig(gles11)  pkgconfig(egl) pkgconfig(glesv1) pkgconfig(gl)
135
136 Prefer: libgbm
137 Prefer: coregl coregl-devel
138 Prefer: emulator-yagl emulator-yagl-devel
139
140 %define _with_wayland 1
141 %define _with_emulator 1
142
143 Macros:
144 %_with_wayland 1
145 %_with_emulator 1
146 :Macros
147
148 %endif
149
150 %if "%_repository" == "target-TM1"
151
152 Macros:
153 %tizen_target_name TM1
154 :Macros
155
156 %endif
157
158 ############################# misc config flags ################################
159
160 # Activate introspection
161 # This is needed on GuPNP to build Rygel correctly in IVI
162 # Impacts potentially packages that use gobject-introspection
163 # Owner: Mikko <mikko.ylinen@intel.com>
164 Macros:
165 %_with_introspection 1
166 :Macros
167
168 ############################# build config #####################################
169 # derived from Tizen:Base
170 ################################################################################
171
172 ########## compilation flags ##########
173 # derived from Tizen:Base
174 #######################################