summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-25 22:56:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-01-25 22:56:02 +0000
commit40b35718aff3ca737ad174e6a0aa71576eb638ce (patch)
tree0d2b881ad899081a8df5082a95a8c7b3892c7994
parent86cfa9a19dfde6cd3b40118a2fa9cc5fd42f8451 (diff)
parent822eb164e768410a27c36778e3a6da2ddefc7398 (diff)
downloadglib-emu-34-2-release.tar.gz
Merge "Snap for 11361523 from 344d1ffcd0f7a69d4c09318443904e3cb3cba873 to emu-34-2-release" into emu-34-2-releaseemu-34-2-release
-rw-r--r--glib/CMakeLists.txt286
1 files changed, 161 insertions, 125 deletions
diff --git a/glib/CMakeLists.txt b/glib/CMakeLists.txt
index 9880fcaaa..f640304d9 100644
--- a/glib/CMakeLists.txt
+++ b/glib/CMakeLists.txt
@@ -5,121 +5,131 @@
# multiple versions on m1.
message(STATUS "Building glib2 for ${ANDROID_TARGET_TAG}")
android_add_library(
- TARGET glib2_${ANDROID_TARGET_TAG}
+ TARGET
+ glib2_${ANDROID_TARGET_TAG}
SHARED
LIBNAME
- glib-2.0
- URL
- "https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-master-dev/"
- SPDX
- "LGPL-2.1-only"
+ glib-2.0
+ URL
+ "https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-master-dev/"
+ SPDX
+ "LGPL-2.1-only"
LICENSE
- "https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-master-dev/COPYING"
- LOCAL
- "${ANDROID_QEMU2_TOP_DIR}/LICENSES/LICENSE.LGPLv21"
- SRC garcbox.c
- garray.c
- gasyncqueue.c
- gatomic.c
- gbacktrace.c
- gbase64.c
- gbitlock.c
- gbookmarkfile.c
- gbytes.c
- gcharset.c
- gchecksum.c
- gconvert.c
- gdataset.c
- gdate.c
- gdatetime.c
- gdir.c
- genviron.c
- gerror.c
- gfileutils.c
- # ggettext.c # This requires the gettext packages.
- ghash.c
- ghmac.c
- ghook.c
- ghostutils.c
- giochannel.c
- gkeyfile.c
- glib-init.c
- glib-private.c
- glist.c
- gmain.c
- gmappedfile.c
- gmarkup.c
- gmem.c
- gmessages.c
- gnode.c
- goption.c
- gpathbuf.c
- gpattern.c
- gpoll.c
- gprimes.c
- gprintf.c
- gqsort.c
- gquark.c
- gqueue.c
- grand.c
- grcbox.c
- grefcount.c
- grefstring.c
- # gregex.c
- gscanner.c
- gsequence.c
- gshell.c
- gslice.c
- gslist.c
- gstdio.c
- gstrfuncs.c
- gstring.c
- gstringchunk.c
- gstrvbuilder.c
- gtestutils.c
- gthread.c
- gthreadpool.c
- gtimer.c
- gtimezone.c
- gtrace-private.h
- gtrace.c
- gtranslit.c
- gtrashstack.c
- gtree.c
- gunibreak.c
- gunicollate.c
- gunidecomp.c
- guniprop.c
- guri.c
- guriprivate.h
- gutf8.c
- gutils.c
- gutilsprivate.h
- # guuid.c # needs libintl.h from gettext
- gvariant-core.c
- gvariant-parser.c
- gvariant-serialiser.c
- gvariant.c
- gvarianttype.c
- gvarianttypeinfo.c
- gversion.c
- gwakeup.c
- libcharset/localcharset.c
- WINDOWS dirent/dirent.c
- giowin32.c
- gnulib/isnan.c
- gnulib/printf-args.c
- gnulib/printf-frexp.c
- gnulib/printf-frexpl.c
- gnulib/printf-parse.c
- gnulib/printf.c
- gnulib/vasnprintf.c
- gspawn-win32.c
- gthread-win32.c
- gwin32.c
- POSIX giounix.c glib-unix.c glib-unixprivate.h gspawn.c gthread-posix.c
- DARWIN gosxutils.m
- LINUX gjournal-private.c)
+ "https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-master-dev/COPYING"
+ LOCAL
+ "${ANDROID_QEMU2_TOP_DIR}/LICENSES/LICENSE.LGPLv21"
+ SRC
+ garcbox.c
+ garray.c
+ gasyncqueue.c
+ gatomic.c
+ gbacktrace.c
+ gbase64.c
+ gbitlock.c
+ gbookmarkfile.c
+ gbytes.c
+ gcharset.c
+ gchecksum.c
+ gconvert.c
+ gdataset.c
+ gdate.c
+ gdatetime.c
+ gdir.c
+ genviron.c
+ gerror.c
+ gfileutils.c
+ # ggettext.c # This requires the gettext packages.
+ ghash.c
+ ghmac.c
+ ghook.c
+ ghostutils.c
+ giochannel.c
+ gkeyfile.c
+ glib-init.c
+ glib-private.c
+ glist.c
+ gmain.c
+ gmappedfile.c
+ gmarkup.c
+ gmem.c
+ gmessages.c
+ gnode.c
+ goption.c
+ gpathbuf.c
+ gpattern.c
+ gpoll.c
+ gprimes.c
+ gprintf.c
+ gqsort.c
+ gquark.c
+ gqueue.c
+ grand.c
+ grcbox.c
+ grefcount.c
+ grefstring.c
+ # gregex.c
+ gscanner.c
+ gsequence.c
+ gshell.c
+ gslice.c
+ gslist.c
+ gstdio.c
+ gstrfuncs.c
+ gstring.c
+ gstringchunk.c
+ gstrvbuilder.c
+ gtestutils.c
+ gthread.c
+ gthreadpool.c
+ gtimer.c
+ gtimezone.c
+ gtrace-private.h
+ gtrace.c
+ gtranslit.c
+ gtrashstack.c
+ gtree.c
+ gunibreak.c
+ gunicollate.c
+ gunidecomp.c
+ guniprop.c
+ guri.c
+ guriprivate.h
+ gutf8.c
+ gutils.c
+ gutilsprivate.h
+ # guuid.c # needs libintl.h from gettext
+ gvariant-core.c
+ gvariant-parser.c
+ gvariant-serialiser.c
+ gvariant.c
+ gvarianttype.c
+ gvarianttypeinfo.c
+ gversion.c
+ gwakeup.c
+ libcharset/localcharset.c
+ WINDOWS
+ dirent/dirent.c
+ giowin32.c
+ gnulib/isnan.c
+ gnulib/printf-args.c
+ gnulib/printf-frexp.c
+ gnulib/printf-frexpl.c
+ gnulib/printf-parse.c
+ gnulib/printf.c
+ gnulib/vasnprintf.c
+ gspawn-win32.c
+ gthread-win32.c
+ gwin32.c
+ POSIX
+ giounix.c
+ glib-unix.c
+ glib-unixprivate.h
+ gspawn.c
+ gthread-posix.c
+ DARWIN
+ gosxutils.m
+ LINUX
+ gjournal-private.c)
target_compile_options(
glib2_${ANDROID_TARGET_TAG}
@@ -175,8 +185,13 @@ android_target_include_directories(
../os/darwin
..)
android_target_link_libraries(
- glib2_${ANDROID_TARGET_TAG} darwin PUBLIC "-framework CoreFoundation"
- "-framework AppKit" iconv c)
+ glib2_${ANDROID_TARGET_TAG}
+ darwin
+ PUBLIC
+ "-framework CoreFoundation"
+ "-framework AppKit"
+ iconv
+ c)
android_target_include_directories(
glib2_${ANDROID_TARGET_TAG}
@@ -187,19 +202,40 @@ android_target_include_directories(
../os/windows
..)
android_target_compile_definitions(
- glib2_${ANDROID_TARGET_TAG} windows
- PRIVATE UNICODE _UNICODE HAVE_ISNAN_IN_LIBC HAVE_ISNAND_IN_LIBC
- HAVE_ISNANF_IN_LIBC HAVE_ISNANL_IN_LIBC)
-android_target_link_libraries(glib2_${ANDROID_TARGET_TAG} windows
- PUBLIC ws2_32::ws2_32)
+ glib2_${ANDROID_TARGET_TAG}
+ windows
+ PRIVATE
+ UNICODE
+ _UNICODE
+ HAVE_ISNAN_IN_LIBC
+ HAVE_ISNAND_IN_LIBC
+ HAVE_ISNANF_IN_LIBC
+ HAVE_ISNANL_IN_LIBC)
+android_target_compile_options(
+ glib2_${ANDROID_TARGET_TAG}
+ windows
+ PRIVATE
+ -Wno-unknown-argument
+ -Wno-format
+ -Wno-unused-but-set-variable
+ -Wno-implicit-fallthrough
+ -Wno-format-nonliteral)
+
+android_target_link_libraries(glib2_${ANDROID_TARGET_TAG} windows PUBLIC
+ ws2_32::ws2_32)
android_install_shared(glib2_${ANDROID_TARGET_TAG})
add_library(glib2 ALIAS glib2_${ANDROID_TARGET_TAG})
android_license(
- TARGET "glib2"
- LIBNAME glib-2.0
- URL "https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-master-dev/"
- SPDX "LGPL-2.1-only"
+ TARGET
+ "glib2"
+ LIBNAME
+ glib-2.0
+ URL
+ "https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-master-dev/"
+ SPDX
+ "LGPL-2.1-only"
LICENSE
- "https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-master-dev/COPYING"
- LOCAL "${ANDROID_QEMU2_TOP_DIR}/LICENSES/LICENSE.LGPLv21")
+ "https://android.googlesource.com/platform/external/bluetooth/glib/+/refs/heads/emu-master-dev/COPYING"
+ LOCAL
+ "${ANDROID_QEMU2_TOP_DIR}/LICENSES/LICENSE.LGPLv21")