Skip to content

Commit f0eaf8f

Browse files
committed
Fix linking of files in translation kit
This links the files in the translation kit with libtranslation.so.
1 parent 0f34f9e commit f0eaf8f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Jamfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ local sourceFiles =
231231
#DiskDeviceDefs.cpp
232232
FilePanel.cpp
233233

234+
# TranslationKit
235+
# NOTE: When adding a new file to this list, you will likely also want to
236+
# tell the compiler to link it with libtranslation.so below.
234237
TranslationDefs.cpp
235238
TranslatorRoster.cpp
236239
TranslationUtils.cpp
@@ -248,6 +251,12 @@ for sourceFile in $(sourceFiles) {
248251
# FilePanel.so needs to be linked with libtracker.so
249252
LINKLIBS on FilePanel.so = $(LINKLIBS) -ltracker ;
250253

254+
# Some/all files in the translation kit need libtranslation.so
255+
LINKLIBS on TranslationDefs.so = $(LINKLIBS) -ltranslation ;
256+
LINKLIBS on TranslatorRoster.so = $(LINKLIBS) -ltranslation ;
257+
LINKLIBS on TranslationUtils.so = $(LINKLIBS) -ltranslation ;
258+
LINKLIBS on Translator.so = $(LINKLIBS) -ltranslation ;
259+
251260
# __init__.py can be built by simply copying the file
252261
MakeLocate __init__.py : $(LOCATE_TARGET) ; # Put it in the build directory
253262
File __init__.py : bindings/__init__.py ;

0 commit comments

Comments
 (0)