mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 11:15:34 +08:00
use path.getabsolute since os.realpath will return nil if the file doesn't exist
This commit is contained in:
parent
a150541303
commit
cf38fda135
@ -68,7 +68,8 @@ newaction {
|
||||
else
|
||||
deps_install_prefix = 'install32'
|
||||
end
|
||||
local protoc_exe = os.realpath(deps_dir .. 'protobuf/' .. deps_install_prefix .. '/bin/protoc')
|
||||
local protoc_exe = path.getabsolute(path.join(deps_dir, 'protobuf', deps_install_prefix, 'bin', 'protoc'), _MAIN_SCRIPT_DIR)
|
||||
|
||||
local out_dir = 'dll/proto_gen/' .. os_iden
|
||||
|
||||
if os.host() == "windows" then
|
||||
@ -426,8 +427,8 @@ filter { "system:windows", "action:gmake*", }
|
||||
if os.target() == "windows" then
|
||||
|
||||
-- token expansion like '%{cfg.platform}' happens later during project build
|
||||
local dos_stub_exe = os.realpath('resources/win/file_dos_stub/file_dos_stub_%{cfg.platform}.exe')
|
||||
local signer_tool = os.realpath('third-party/build/win/cert/sign_helper.bat')
|
||||
local dos_stub_exe = path.translate(path.getabsolute('resources/win/file_dos_stub/file_dos_stub_%{cfg.platform}.exe', _MAIN_SCRIPT_DIR), '\\')
|
||||
local signer_tool = path.translate(path.getabsolute('third-party/build/win/cert/sign_helper.bat', _MAIN_SCRIPT_DIR), '\\')
|
||||
-- change dos stub
|
||||
filter { "system:windows", "options:dosstub", }
|
||||
postbuildcommands {
|
||||
@ -447,6 +448,7 @@ workspace "gbe"
|
||||
location("build/project/%{_ACTION}/" .. os_iden)
|
||||
|
||||
|
||||
|
||||
-- Project api_regular
|
||||
---------
|
||||
project "api_regular"
|
||||
|
Loading…
Reference in New Issue
Block a user