Get it to build from go build

This commit is contained in:
idk
2021-06-17 23:12:22 -04:00
parent 5013ce5649
commit 7bc2e74683
7 changed files with 53 additions and 38 deletions

10
libi2pd/api.go Normal file
View File

@@ -0,0 +1,10 @@
package api
/*
//void Go_InitI2P (int argc, char argv[], const char * appName){
//}
#cgo CPPFLAGS: -I${SRCDIR}/../i18n -I${SRCDIR}/../libi2pd_client -g -Wall -Wextra -Wno-unused-parameter -pedantic -Wno-psabi -fPIC -D__AES__ -maes
#cgo LDFLAGS: -latomic -lcrypto -lssl -lz -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread -lstdc++
*/
import "C"