From 70b585d69a9c4fe6b4b01e32b7eba2ecd68c697a Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Thu, 22 Jun 2017 19:39:14 -0400 Subject: [PATCH] finding the scripts path --- build_scripts/setup_cl_x64.bat | 3 ++- build_scripts/setup_cl_x86.bat | 3 ++- meta/build.cpp | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build_scripts/setup_cl_x64.bat b/build_scripts/setup_cl_x64.bat index c953d5e0..fa31686c 100644 --- a/build_scripts/setup_cl_x64.bat +++ b/build_scripts/setup_cl_x64.bat @@ -1,4 +1,5 @@ @echo off -setup_cl_generic.bat amd64 +SET SCRIPTS_PATH=%~dp0 +%SCRIPTS_PATH%\setup_cl_generic.bat amd64 diff --git a/build_scripts/setup_cl_x86.bat b/build_scripts/setup_cl_x86.bat index 33fdcc1f..2831dbf2 100644 --- a/build_scripts/setup_cl_x86.bat +++ b/build_scripts/setup_cl_x86.bat @@ -1,5 +1,6 @@ @echo off -setup_cl_generic.bat amd64_x86 +SET SCRIPTS_PATH=%~dp0 +%SCRIPTS_PATH%\setup_cl_generic.bat amd64_x86 diff --git a/meta/build.cpp b/meta/build.cpp index 32381b4b..0efc2e29 100644 --- a/meta/build.cpp +++ b/meta/build.cpp @@ -158,10 +158,10 @@ build_cl(u32 flags, char *code_path, char *code_file, char *out_path, char *out_ init_build_line(&line_prefix); if (flags & X86){ - build_ap(line_prefix, "BUILD_SCRIPTS\\SETUP_CL_X86 & "); + build_ap(line_prefix, "%s\\build_scripts\\setup_cl_x86.bat & ", code_path); } else{ - build_ap(line_prefix, "BUILD_SCRIPTS\\SETUP_CL_X64 & "); + build_ap(line_prefix, "%s\\build_scripts\\setup_cl_x64.bat & ", code_path); } if (flags & OPTS){