1 Star 0 Fork 1

郑明/como_v8pp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
Pavel Medvedev 提交于 2021-03-07 11:31 . remove compiler warnings in tests
CXX ?= c++
CXXFLAGS += -Wall -Wextra -Wno-return-type-c-linkage -Wno-unneeded-internal-declaration -std=c++14 -fPIC -fno-rtti -DV8PP_ISOLATE_DATA_SLOT=0
LDFLAGS += -shared
AR = ar
ARFLAGS = rcs
INCLUDES = -I. -I./v8pp -isystem./v8/include -isystem./v8 -isystem/usr -isystem/usr/lib -isystem/opt/libv8-${V8_VERSION}/include
LIBS += -L./v8/lib -L/opt/libv8-${V8_VERSION}/lib -Wl,-rpath,/opt/libv8-${V8_VERSION}/lib -lv8 -lv8_libplatform -lv8_libbase -licui18n -licuuc -L. -lv8pp -ldl -lpthread
.cpp.o:
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
all: lib plugins v8pp_test
v8pp_test: $(patsubst %.cpp, %.o, $(wildcard test/*.cpp))
$(CXX) $^ -o $@ $(LIBS)
lib: $(patsubst %.cpp, %.o, $(wildcard v8pp/*.cpp))
$(AR) $(ARFLAGS) libv8pp.a $^
plugins: console file
console: $(patsubst %.cpp, %.o, plugins/console.cpp)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(LIBS) $^ -o $@.so
file: $(patsubst %.cpp, %.o, plugins/file.cpp)
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(LIBS) $^ -o $@.so
clean:
rm -rf v8pp/*.o test/*.o plugins/*.o libv8pp.a v8pp_test console.so file.so
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/zhengmingtoh/como_v8pp.git
[email protected]:zhengmingtoh/como_v8pp.git
zhengmingtoh
como_v8pp
como_v8pp
master

搜索帮助