mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-04-29 19:44:52 +02:00
linux protobuf gen
This commit is contained in:
parent
c5515003d3
commit
35c4a7fccc
1 changed files with 9 additions and 2 deletions
11
premake5.lua
11
premake5.lua
|
@ -183,8 +183,15 @@ local x64_include_linux = {
|
|||
|
||||
if _ACTION == "generateproto" then
|
||||
print("Generating from .proto file!")
|
||||
-- todo edit this path!
|
||||
os.execute('call ' .. _MAIN_SCRIPT_DIR ..'/build/deps/win/protobuf/install32/bin/protoc.exe dll/net.proto -I./dll/ --cpp_out=dll/proto_gen/win')
|
||||
if os.target() == "windows" then
|
||||
os.mkdir("dll/proto_gen/win")
|
||||
os.execute('call ' .. _MAIN_SCRIPT_DIR ..'/build/deps/win/protobuf/install32/bin/protoc.exe dll/net.proto -I./dll/ --cpp_out=dll/proto_gen/win')
|
||||
end
|
||||
else then
|
||||
os.mkdir("dll/proto_gen/linux")
|
||||
os.chmod(_MAIN_SCRIPT_DIR ..'/build/deps/linux/protobuf/install32/bin/protoc', "777")
|
||||
os.execute(_MAIN_SCRIPT_DIR ..'/build/deps/linux/protobuf/install32/bin/protoc dll/net.proto -I./dll/ --cpp_out=dll/proto_gen/linux')
|
||||
end
|
||||
print("Generation success!")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue