Skip to content

Commit a94ef20

Browse files
committed
Add macros for ACE_ROOT and TAO_ROOT
1 parent 71963c4 commit a94ef20

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

modules/GHSWorkspaceCreator.pm

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,11 @@ sub pre_workspace {
7979
}
8080
}
8181

82-
# TODO(sonndinh): Some platform information is configurable such as
83-
# the path to an INTEGRITY installation, bsp name.
82+
# TODO(sonndinh):
8483
# Some other information is specific to ACE such as its root directory,
8584
# its compilation and linking requirements (C++ version, flags, etc).
8685
# These can be put in some form of input to MPC instead of hardcoded here.
87-
# Update: We can use environment variables and command-line options:
86+
# We can use environment variables and command-line options:
8887
# --expand_vars, -use_env. Or can use the -relative command-line option.
8988
# The first option requires setting environment variables.
9089
# The second option requires passing parameters to the -relative option.
@@ -95,6 +94,7 @@ sub pre_workspace {
9594
my $ghs_os_dir = defined $ENV{GHS_OS_DIR} ? $ENV{GHS_OS_DIR} : 'C:\ghs\int1146';
9695
my $ghs_bsp_name = defined $ENV{GHS_BSP_NAME} ? $ENV{GHS_BSP_NAME} : "sim800";
9796

97+
## Require that ACE_ROOT and TAO_ROOT environment variables are set.
9898
my $ace_root = $ENV{ACE_ROOT};
9999
my $tao_root = $ENV{TAO_ROOT};
100100

@@ -103,9 +103,10 @@ sub pre_workspace {
103103
"macro __OS_DIR=$ghs_os_dir$crlf",
104104
"macro __BSP_NAME=$ghs_bsp_name$crlf",
105105
"macro __BSP_DIR=\${__OS_DIR}\\\${__BSP_NAME}$crlf",
106-
#"macro ACE_ROOT=%expand_path(.)$crlf",
107-
#"macro __BUILD_DIR=\${ACE_ROOT}\\build$crlf",
108-
"macro __BUILD_DIR=%expand_path(.)\\build$crlf",
106+
"macro ACE_ROOT=$ace_root$crlf",
107+
"macro __BUILD_DIR=\${ACE_ROOT}\\build$crlf",
108+
#"macro __BUILD_DIR=%expand_path(.)\\build$crlf",
109+
"macro TAO_ROOT=$tao_root$crlf",
109110
"macro __LIBS_DIR_BASE=\${__OS_DIR}\\libs$crlf",
110111
"primaryTarget=$tgt$crlf",
111112
"customization=\${__OS_DIR}\\target\\integrity.bod$crlf",
@@ -116,9 +117,10 @@ sub pre_workspace {
116117
"\t--libcxx$crlf",
117118
"\t:sourceDir=.$crlf",
118119
"\t:optionsFile=\${__OS_DIR}\\target\\\${__BSP_NAME}.opt$crlf",
119-
#"\t-I\${ACE_ROOT}$crlf",
120-
"\t-I$ace_root$crlf",
121-
"\t-I$tao_root$crlf",
120+
"\t-I\${ACE_ROOT}$crlf",
121+
"\t-I\${TAO_ROOT}$crlf",
122+
#"\t-I$ace_root$crlf",
123+
#"\t-I$tao_root$crlf",
122124
"\t-language=cxx$crlf",
123125
"\t--new_style_casts$crlf",
124126
"\t-non_shared$crlf";

0 commit comments

Comments
 (0)