mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
lo.mk: Add support for LO_NAMESPACE
This commit is contained in:
parent
729a1a6592
commit
0b0fe7167d
1 changed files with 4 additions and 1 deletions
|
|
@ -36,7 +36,10 @@ $(SO_PREFIX)%.so $(SO_PREFIX)%.dll: %.o $(LOADABLE_OBJS_O)
|
|||
$(CPP) $< $(filter $(CPP_PREFIX)$*%, $(LOADABLE_OBJS_O)) -shared $(LDFLAGS) -o $@
|
||||
|
||||
%.cpp: $(TOOLS_DIR)/$(CPP_PREFIX)%.h
|
||||
echo -e "#include \"$<\"\n$(LOADABLE_OBJ_HOOK)($(CPP_PREFIX)$*);\n" > $@
|
||||
echo "#include \"$<\"" > $@.tmp
|
||||
if [ "$(LO_NAMESPACE)" ]; then echo "using namespace $(LO_NAMESPACE);" >> $@.tmp; fi
|
||||
echo "$(LOADABLE_OBJ_HOOK)($(CPP_PREFIX)$*);" >> $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
$(BUILD_LIBDIR)/%.so: %.so
|
||||
install -m 755 $< $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue