use pkgconfig to define the runmode of MiniGUI

This commit is contained in:
VincentWei
2018-01-21 18:34:33 +08:00
parent 6290779a02
commit 78668dbdfc
2 changed files with 7 additions and 2 deletions

View File

@@ -1585,17 +1585,20 @@ case "$runtime_mode" in
[Define if build MiniGUI-Standalone (back-compatibility definition)])
AC_DEFINE(_LITE_VERSION, 1,
[Define if build MiniGUI-Standalone (back-compatibility definition)])
MINIGUI_RUNMODE="sa"
;;
ths)
AC_DEFINE(_MGRM_THREADS, 1,
[Define if build MiniGUI-Threads])
CFLAGS="$CFLAGS -D_REENTRANT"
MINIGUI_RUNMODE="ths"
;;
procs)
*)
AC_DEFINE(_MGRM_PROCESSES, 1,
[Define if build MiniGUI-Processes])
AC_DEFINE(_LITE_VERSION, 1,
[Define if build MiniGUI-Processes (back-compatibility definition)])
MINIGUI_RUNMODE="procs"
;;
esac
@@ -2451,6 +2454,7 @@ fi
AC_SUBST(VIDEO_SUBDIRS)
AC_SUBST(VIDEO_DRIVERS)
AC_SUBST(DEP_LIBS)
AC_SUBST(MINIGUI_RUNMODE)
AM_CONDITIONAL(MGRM_PROCESSES, test "x$runtime_mode" = "xprocs")
AM_CONDITIONAL(MGRM_STANDALONE, test "x$runtime_mode" = "xsa")

View File

@@ -4,8 +4,9 @@ libdir=@libdir@
includedir=@includedir@
Name: MiniGUI
Description: A mature cross-platform windowing system and GUI system for embedded and IoT devices.
Description: A mature cross-platform windowing and GUI system for embedded systems and IoT smart devices.
Version: @MINIGUI_VERSION@
Runmode: @MINIGUI_RUNMODE@
Requires:
Libs: -L${libdir} -lminigui_@MGLIB_SUFFIX@ @DEP_LIBS@
Libs.private: