buildlinux.bat 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @echo off
  2. SET CGO_ENABLED=0
  3. SET GOARCH=amd64
  4. SET GOOS=linux
  5. set linuxpath=D:\run\linux
  6. echo "build linux ELF files"
  7. echo "[db] build linux ELF file"
  8. go build -o %linuxpath%/db ./db
  9. echo "[game] build linux ELF file"
  10. go build -o %linuxpath%/game ./game
  11. echo "[gate] build linux ELF file"
  12. go build -o %linuxpath%/gate ./gate
  13. echo "[auth] build linux ELF file"
  14. go build -o %linuxpath%/auth ./auth
  15. echo "[social] build linux ELF file"
  16. go build -o %linuxpath%/social ./social
  17. ::echo "[server_aoi] build linux ELF file"
  18. ::go build -o %linuxpath%/server_aoi ./server_aoi
  19. ::echo "[server_map_router] build linux ELF file"
  20. ::go build -o %linuxpath%/server_map_router ./server_map_router
  21. echo "[battleboss] build linux ELF file"
  22. go build -o %linuxpath%/battleboss ./battleboss
  23. echo "[rank] build linux ELF file"
  24. go build -o %linuxpath%/rank ./rank
  25. echo "[guild] build linux ELF file"
  26. go build -o %linuxpath%/guild ./guild
  27. echo "[gmweb] build linux ELF file"
  28. go build -o %linuxpath%/gmweb ./gmweb
  29. echo "[battlerecord] build linux ELF file"
  30. go build -o %linuxpath%/battlerecord ./battlerecord
  31. echo "[cross_router] build linux ELF file"
  32. go build -o %linuxpath%/crossrouter ./cross_router
  33. echo "[cross_server] build linux ELF file"
  34. go build -o %linuxpath%/crossserver ./cross_server
  35. echo "[cross_rank] build linux ELF file"
  36. go build -o %linuxpath%/crossrank ./cross_rank
  37. echo "build linux ELF files finish..."
  38. ::config files
  39. xcopy /SY .\config D:\run\linux\config
  40. cd ./test
  41. go build
  42. cd ..
  43. pause