Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 1755a7b7 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

BUILD: Add DB source into modules if they are dynamic libs (they can't pic...

BUILD: Add DB source into modules if they are dynamic libs (they can't pic symbols inside liblektor)
parent bf6a15fa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!157Caching for karas & refactor & others
...@@ -32,6 +32,21 @@ else ...@@ -32,6 +32,21 @@ else
lib_LTLIBRARIES = liblktmodsdl.la liblktmodrepo.la liblektor.la lib_LTLIBRARIES = liblktmodsdl.la liblktmodrepo.la liblektor.la
endif endif
## Lib lektor
LKT_BASE_SOURCES = \
base/bufferfd.c base/cmd.c base/common.c base/config.c \
base/json.c base/reg.c base/uri.c base/commands.c \
base/stack.c base/segv.c base/os.c base/launch.c # Base sources
LKT_DATABASE_SOURCES = \
database/disk.c database/memory.c \
database/open.c database/playlist.c database/queue.c \
database/stickers.c database/update.c database/user.c \
database/config.c database/find.c database/cache.c # Database sources
LKT_MKV_SOURCES = mkv/mkv.c mkv/utils.c mkv/write.c # MKV interactions sources
LKT_NET_SOURCES = net/command.c net/listen.c net/message.c # Net sources
## REPO module ## REPO module
liblktmodrepo_la_SOURCES = module/module_repo.c module/worker.c liblktmodrepo_la_SOURCES = module/module_repo.c module/worker.c
liblktmodrepo_la_CFLAGS = -fPIC liblktmodrepo_la_CFLAGS = -fPIC
...@@ -40,7 +55,7 @@ if LKT_STATIC_MODULE ...@@ -40,7 +55,7 @@ if LKT_STATIC_MODULE
liblktmodrepo_la_LDFLAGS += -static liblktmodrepo_la_LDFLAGS += -static
else else
liblktmodrepo_la_LDFLAGS += -shared liblktmodrepo_la_LDFLAGS += -shared
liblktmodrepo_la_SOURCES += base/os.c liblktmodrepo_la_SOURCES += base/os.c $(LKT_DATABASE_SOURCES)
endif endif
## SDL2 module ## SDL2 module
...@@ -51,24 +66,9 @@ if LKT_STATIC_MODULE ...@@ -51,24 +66,9 @@ if LKT_STATIC_MODULE
liblktmodsdl_la_LDFLAGS += -static liblktmodsdl_la_LDFLAGS += -static
else else
liblktmodsdl_la_LDFLAGS += -shared liblktmodsdl_la_LDFLAGS += -shared
liblktmodsdl_la_SOURCES += base/os.c src/mkv/utils.c liblktmodsdl_la_SOURCES += base/os.c src/mkv/utils.c $(LKT_DATABASE_SOURCES)
endif endif
## Lib lektor
LKT_BASE_SOURCES = \
base/bufferfd.c base/cmd.c base/common.c base/config.c \
base/json.c base/reg.c base/uri.c base/commands.c \
base/stack.c base/segv.c base/os.c base/launch.c # Base sources
LKT_DATABASE_SOURCES = \
database/disk.c database/memory.c \
database/open.c database/playlist.c database/queue.c \
database/stickers.c database/update.c database/user.c \
database/config.c database/find.c database/cache.c # Database sources
LKT_MKV_SOURCES = mkv/mkv.c mkv/utils.c mkv/write.c # MKV interactions sources
LKT_NET_SOURCES = net/command.c net/listen.c net/message.c # Net sources
# Liblektor configuration # Liblektor configuration
liblektor_la_SOURCES = $(LKT_MKV_SOURCES) $(LKT_BASE_SOURCES) $(LKT_DATABASE_SOURCES) $(LKT_NET_SOURCES) liblektor_la_SOURCES = $(LKT_MKV_SOURCES) $(LKT_BASE_SOURCES) $(LKT_DATABASE_SOURCES) $(LKT_NET_SOURCES)
liblektor_la_CFLAGS = -fPIC liblektor_la_CFLAGS = -fPIC
......
Ce diff est replié.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter