1 26 27 package org.objectweb.openccm.task; 28 29 import java.util.Map ; 31 32 39 public class CompilerBase 40 extends LauncherApplication 41 { 42 48 49 protected String file_; 50 51 52 private boolean idl3_macro_; 53 54 55 private CPPoptions cpp_options_; 56 57 63 68 public CompilerBase(Map project_properties) 69 { 70 super(project_properties); 72 73 file_ = null; 75 idl3_macro_ = true; 76 cpp_options_ = null; 77 } 78 79 85 91 94 public void 95 disableIDL3macro() 96 { 97 idl3_macro_ = false; 98 } 99 100 103 public void 104 compiler_configure() 105 { 106 if (idl3_macro_) 107 { 108 addProperty("__OMG_IDL_3__", ""); 109 } 110 if (cpp_options_ != null) 111 { 112 addArgument( cpp_options_.getCPParguments() ); 113 } 114 } 115 116 119 public void 120 configure() 121 { 122 compiler_configure(); 123 addArgument(file_); 124 addProperty( "OpenCCM_CONFIG_DIR", 125 project_properties_.getProperty("OpenCCM_CONFIG_DIR") ); 126 } 127 128 133 public void 134 setFile(String file) 135 { 136 this.file_ = file; 137 } 138 139 142 public CPPoptions 143 createCpp() 144 { 145 cpp_options_ = new CPPoptions(); 146 return cpp_options_; 147 } 148 149 } 150 | Popular Tags |