Пример #1
0
func runCFC() {
	hierarchy := cfc.NewHierarchy("autogen")
	hierarchy.AddSourceDir("../core")
	hierarchy.Build()
	autogenHeader := "Auto-generated by build.go.\n"
	coreBinding := cfc.NewBindCore(hierarchy, autogenHeader, "")
	modified := coreBinding.WriteAllModified(false)
	if modified {
		goBinding := cfc.NewBindGo(hierarchy)
		goBinding.SetHeader(autogenHeader)
		goBinding.SetSuppressInit(true)
		parcel := cfc.FetchParcel("Clownfish")
		specMethods(parcel)
		packageDir := path.Join(buildDir, "clownfish")
		goBinding.WriteBindings(parcel, packageDir)
		hierarchy.WriteLog()
	}
}
Пример #2
0
func TestStuff(t *testing.T) {
	hierarchy := cfc.NewHierarchy("autogen")
	hierarchy.Build()
}