22 lines
575 B
Go
22 lines
575 B
Go
package parser
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"sylixos-uploader/common"
|
|
)
|
|
|
|
const (
|
|
projectTypeBase = "SylixOSBaseProject" // SylixOS Base Project
|
|
projectTypeBSP = "SylixOSBspProject" // SylixOS BSP Project
|
|
projectTypeApp = "SylixOSAppProject" // SylixOS Application Project
|
|
projectTypeSlib = "SylixOSSlibProject" // SylixOS Linux Compatibility Project
|
|
projectTypeAlib = "SylixOSAlibProject"
|
|
)
|
|
|
|
func IsSylixOSPrj(dirPath string) bool {
|
|
reprojectPath := filepath.Join(dirPath, common.ReprojectFile)
|
|
_, err := os.Lstat(reprojectPath)
|
|
return !os.IsNotExist(err)
|
|
}
|