Skip to content

Chalet project in Yaml doesn't accept path: . #411

@dimitre

Description

@dimitre

I'm using yaml-cpp to generate a Chalet template for openFrameworks
but found this key is invalid in Chalet

  path: .

I can fix manually by changing to

  path: "."

but when parsing and saving in yaml-cpp it will remove ""

Chalet error:

ERROR: Failed to validate the file: chalet.yaml
ERROR: An invalid type was found for 'path'. Found number

chalet project (ongoing, more things to fix)

name: OF
version: 0.3.3
variables:
  path: .
  addons: ProjectSourceFiles_TheOne,ofxTools,ofxMicroUI,ofxMidi,ofxMicroUIMidiController,ofxScenes,ofxAssimp,ofxVideoWriter
  platform: macos
  ofPath: ../../..
externalDependencies:
  ofLib:
    kind: local
    path: ${var:ofPath}
abstracts:*:
  language: C++
  language[toolchain:apple-llvm]: Objective-C++
  settings:Cxx:
    cppStandard: c++20
    compileOptions:
      - -Wfatal-errors
    warningsPreset: minimal
    runtimeTypeInformation: true
    threads: true
    exceptions: true
    defines[:debug]:
      - DEBUG
    compileOptions[toolchain:apple-llvm]:
      - -fobjc-arc
    includeDirs:
      - ${var:ofPath}/libs/openFrameworks/*
      - ${var:ofPath}/libs/openFrameworks
      - ${var:ofPath}/libs/{${var:platform}}/include
    appleFrameworks:
      - Accelerate
      - AGL
      - ApplicationServices
      - AVFoundation
      - IOKit
      - Cocoa
      - CoreAudio
      - CoreMedia
      - OpenGL
      - QuartzCore
      - CoreMIDI
targets:
  empty:
    kind: executable
    settings:Cxx:
      includeDirs:
        - ${var:path}/src/
        - ${var:ofPath}/libs/openFrameworks/*
        - ${var:ofPath}/libs/openFrameworks
        - ${var:ofPath}/addons/{${var:addons}}/src/
        - ${var:ofPath}/addons/{${var:addons}}/libs/**/include/**/*
        - ${var:ofPath}/addons/{${var:addons}}/libs/**/include
        - ${var:ofPath}/addons/ofxMidi/libs/rtmidi
        - ${var:ofPath}/addons/ofxAssimp/src/Source
        - ${var:ofPath}/addons/ofxTools/src/fft
        - ${var:ofPath}/addons/ofxTools/src/feature
      staticLinks:
        - ${var:ofPath}/addons/ofxAssimp/libs/assimp/lib/${var:platform}/libassimp.a
        - ${var:ofPath}/libs/openFrameworksCompiled/lib/${var:platform}/libopenFrameworks.a
        - ${var:ofPath}/libs/${var:platform}/lib/libglew.a
        - ${var:ofPath}/libs/${var:platform}/lib/libglfw3.a
        - ${var:ofPath}/libs/${var:platform}/lib/libtess2.a
        - ${var:ofPath}/libs/${var:platform}/lib/libFreeImage.a
        - ${var:ofPath}/libs/${var:platform}/lib/libpng16.a
        - ${var:ofPath}/libs/${var:platform}/lib/libglm.a
        - ${var:ofPath}/libs/${var:platform}/lib/libfreetype.a
        - ${var:ofPath}/libs/${var:platform}/lib/libbrotlidec.a
        - ${var:ofPath}/libs/${var:platform}/lib/libbrotlicommon.a
        - ${var:ofPath}/libs/${var:platform}/lib/liburiparser.a
        - ${var:ofPath}/libs/${var:platform}/lib/libpugixml.a
        - ${var:ofPath}/libs/${var:platform}/lib/librtaudio.a
        - ${var:ofPath}/libs/assimp/lib/macos/libassimp.a
    files:
      include:
        - ${var:path}/src/*.cpp
        - ${var:path}/src/**/.cpp
        - ${var:ofPath}/addons/{${var:addons}}/src/**.cpp
        - ${var:ofPath}/addons/{${var:addons}}/src/**.mm
        - ${var:ofPath}/addons/{${var:addons}}/libs/**/**.cpp
      exclude:
        - .DS_Store
        - .settings
        - .vscode
        - ${var:ofPath}/addons/{${var:addons}}/src/ios
    copyFilesOnRun[:macos]: ${var:path}/bin/data
distribution:
  Lolla2025:
    kind: bundle
    buildTargets: "*"
    exclude:
      - data/.gitkeep
    macosBundle:
      type: app
      icon: ${var:ofPath}/libs/openFrameworksCompiled/project/macos/of.icns
      infoPropertyList:
        CFBundleDevelopmentRegion: en-US
        CFBundleDisplayName: ${name}
        CFBundleExecutable: ${mainExecutable}
        CFBundleIconFile: ${icon}
        CFBundleIdentifier: com.developer.application
        CFBundleInfoDictionaryVersion: 6.0
        CFBundleName: ${bundleName}
        CFBundlePackageType: APPL
        CFBundleShortVersionString: 1.0.0
        CFBundleVersion: 1.0.0
        CFBundleSignature: ????
        LSMinimumSystemVersion: 10.8
        NSHighResolutionCapable: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdoneThe issue has been fixed and all related changes have been committed

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions