From: Robert L. <rle...@us...> - 2007-02-20 15:37:58
|
Update of /cvsroot/ccmtools/ccmtools/test/CppAssembly/test1 In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv18578/test/CppAssembly/test1 Added Files: .cvsignore Makefile test1.assembly test1.idl Log Message: C++ assemblies --- NEW FILE: .cvsignore --- gen --- NEW FILE: test1.idl --- module wamas { module Test { interface I1 { string value(); }; interface I2 { /* empty */ }; interface I3 { /* empty */ }; component C1 { attribute string a1; attribute long a2; provides I1 i1; uses I2 i2; }; home H1 manages C1 { }; component C2 { attribute long b; provides I2 i2; uses I3 i3; }; home H2 manages C2 { }; }; // /module Test component C3 { attribute long b; provides Test::I1 i1; uses Test::I3 i3; }; home H3 manages C3 { }; }; // /module wamas --- NEW FILE: Makefile --- DEST_DIR=gen IDL_INCLUDE=-I${DEST_DIR}/idl/interface -I${DEST_DIR}/idl/component all: local idl: test1.idl ccmmodel -validator test1.idl ccmidl -idl3 -o ${DEST_DIR}/idl test1.idl local: idl ccmtools c++local ${IDL_INCLUDE} -a -o ${DEST_DIR}/interfaces `find ${DEST_DIR}/idl/interface -name '*.idl'` ccmtools c++local ${IDL_INCLUDE} -a -o ${DEST_DIR}/components `find ${DEST_DIR}/idl/component -name '*.idl'` ccmtools c++assembly ${IDL_INCLUDE} -o ${DEST_DIR}/components `find ${DEST_DIR}/idl/component -name '*.idl'` test1.assembly check: local ccmconfix -confix2 -o ${DEST_DIR} -pname "assembly-test1" -pversion "0.0.1" confix2.py --packageroot=`pwd`/${DEST_DIR} --bootstrap --configure --make clean: confix2.py --packageroot=`pwd`/${DEST_DIR} --make --targets=clean rm -rf ${DEST_DIR} --- NEW FILE: test1.assembly --- module wamas { assembly A3 implements C3 { component Test::C1 comp1; component wamas::Test::C2 comp2; connect comp2.i2 to comp1.i2; connect comp1.i1 to this.i1; connect i3 to comp2.i3; constant comp1.a1 = "Hello World"; constant comp1.a2 = 642; attribute comp2.b = this.b; }; }; // /module wamas |