语法: // #ifdef %PLATFORM% 这些代码只在该平台编译 // #endif #ifdef : if defined 仅在某个平台编译 #ifndef : if not defined 在除里该平台的其他编译 #endif : end if 结束条件编译 %PLATFORM% 需要编译的平台,上面的MP就是各个小程序的意思 uni-app支持的各个平台 值 平台 参考文档 APP-PLUS 5+App HTML5+ 规范 APP-PLUS-N…
# Comments can be written like this. # File should be named Makefile and then can be run as `make <target>`. # Otherwise we use `make -f "filename" <target>`. # Warning - only use TABS to indent in Makefiles, never spaces! #---------…