Skip to content

Commit 5beb9a3

Browse files
zenoalbisserbbandix
authored andcommitted
<chromium> Adjust gyp defines for eLinux.
- Add Raspberry PI chipset to list of defined platforms. - Make sure to include sources for xdg support. - Do not use pkg-config-wrapper, as our sysroot pkg-config already returns absolute paths. - Use openssl for eLinux. - Use fontconfig and freetype2 for eLinux. Reviewed-by: Pierre Rossi <[email protected]> Change-Id: Ic5266f818432b4432ed1d8a1ac07f434cb5b86e6 Reviewed-by: Zeno Albisser <[email protected]>
1 parent 7cd32ee commit 5beb9a3

File tree

7 files changed

+21
-5
lines changed

7 files changed

+21
-5
lines changed

chromium/base/atomicops_internals_arm_gcc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ inline void MemoryBarrier() {
5353
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) || \
5454
defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) || \
5555
defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || \
56-
defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || \
56+
defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || \
5757
defined(__ARM_ARCH_6KZ__) || defined(__ARM_ARCH_6T2__)
5858

5959
inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr,

chromium/base/base.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
],
3636
},
3737
'conditions': [
38-
['desktop_linux == 1 or chromeos == 1', {
38+
['desktop_linux == 1 or chromeos == 1 or qt_os == "embedded_linux"', {
3939
'conditions': [
4040
['chromeos==1', {
4141
'sources/': [ ['include', '_chromeos\\.cc$'] ]

chromium/base/base.gypi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,18 @@
722722
'atomicops_internals_x86_gcc.cc',
723723
],
724724
}],
725+
# We need to include xdg for embedded linux,
726+
# but we indeed do not want atomicops for x86.
727+
['qt_os == "embedded_linux"', {
728+
'sources/': [
729+
['include', '^nix/'],
730+
],
731+
}],
732+
['use_qt==1 and target_arch=="ia32"', {
733+
'sources/': [
734+
['include', 'atomicops_internals_x86_gcc.cc'],
735+
],
736+
}],
725737
['<(use_glib)==0 or >(nacl_untrusted_build)==1', {
726738
'sources!': [
727739
'message_loop/message_pump_glib.cc',

chromium/build/linux/system.gyp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@
506506
{
507507
'target_name': 'libpci',
508508
'type': 'static_library',
509+
'conditions': [
510+
['use_x11==1', {
509511
'cflags': [
510512
'<!@(<(pkg-config) --cflags libpci)',
511513
],
@@ -566,6 +568,8 @@
566568
'process_outputs_as_sources': 1,
567569
},
568570
],
571+
}],
572+
],
569573
},
570574
{
571575
'target_name': 'libresolv',

chromium/net/net.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@
13661366
'../build/linux/system.gyp:gio',
13671367
],
13681368
}],
1369-
[ 'desktop_linux == 1 or chromeos == 1', {
1369+
[ 'desktop_linux == 1 or chromeos == 1 or qt_os == "embedded_linux"', {
13701370
'conditions': [
13711371
['use_openssl==1', {
13721372
'dependencies': [

chromium/skia/skia_chrome.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
'target_conditions': [
118118
# Pull in specific linux files for android (which have been filtered out
119119
# by file name rules).
120-
[ 'OS == "android"', {
120+
[ 'OS == "android" or qt_os == "embedded_linux"', {
121121
'sources/': [
122122
['include', 'ext/platform_device_linux\\.cc$'],
123123
],

chromium/skia/skia_library.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
'../third_party/skia/src/opts/opts_check_SSE2.cpp'
271271
],
272272
}],
273-
[ 'desktop_linux == 1 or chromeos == 1', {
273+
[ 'desktop_linux == 1 or chromeos == 1 or qt_os=="embedded_linux"', {
274274
'dependencies': [
275275
'../build/linux/system.gyp:fontconfig',
276276
'../build/linux/system.gyp:freetype2',

0 commit comments

Comments
 (0)