浏览代码

UPD: Update build process (#92)

- use environment variable to set Lazarus path instead of modifying
  build.bat which is under source control
- add .gitignore file
Steffen Rehberg 4 年之前
父节点
当前提交
87bbf76769
共有 2 个文件被更改,包括 39 次插入4 次删除
  1. 36 0
      .gitignore
  2. 3 4
      build.bat

+ 36 - 0
.gitignore

@@ -0,0 +1,36 @@
+# Lazarus compiler-generated binaries (safe to delete)
+*.exe
+*.dll
+*.so
+*.dylib
+*.lrs
+*.res
+*.compiled
+*.dbg
+*.ppu
+*.o
+*.or
+*.a
+*.zdli
+*.wcx
+*.wdx
+*.wfx
+units/x86_64-win64-win32
+units/i386-win32-win32
+
+# Lazarus autogenerated files (duplicated info)
+*.rst
+*.rsj
+*.lrt
+
+# Lazarus local files (user-specific info)
+*.lps
+
+# Lazarus backups and unit output folders.
+# These can be changed by user in Lazarus/project options.
+backup/
+*.bak
+lib/
+
+# Application bundle for Mac OS
+*.app/

+ 3 - 4
build.bat

@@ -1,9 +1,8 @@
 @echo off
 
-rem the next two line must be changed before run on your computer
-set lazpath=D:\Alexx\Prog\FreePascal\Lazarus
-
-set PATH=%lazpath%;%PATH%
+rem Add Lazarus installation to path
+if [%LAZARUS_HOME%] == [] set LAZARUS_HOME=D:\Alexx\Prog\FreePascal\Lazarus
+set PATH=%LAZARUS_HOME%;%PATH%
 
 rem You can execute this script with different parameters:
 rem components - compiling components needed for DC