Skip to content
Snippets Groups Projects
Select Git revision
  • 6975e0c4d465eb6ebfc747aefa7dd787a1f503a8
  • master default protected
  • 1.31
  • 4.37.2
  • 4.37.1
  • 4.37.0
  • 4.36.0
  • 4.35.0
  • 4.34.1
  • 4.34.0
  • 4.33.1
  • 4.33.0
  • 4.32.2
  • 4.32.1
  • 4.32.0
  • 4.31.0
  • 4.30.1
  • 4.30.0
  • 4.29.1
  • 4.29.0
  • 4.28.0
  • 4.27.0
  • 4.26.0
23 results

conan.mk

Blame
  • conan.mk 1.51 KiB
    #############################################################################################
    #############################################################################################
    ##
    ## DEFINE CONAN
    ##
    #############################################################################################
    #############################################################################################
    
    
    CONAN_BIN            ?= $(VENDOR_PATH)conan
    CONAN_CONFIG         ?= $(VENDOR_PATH)conan.conf
    
    define CONANEXAMPLECONF
    Server:
      
      # The hostname or IP address of the server (CONAN_SERVER_HOST)
      # Domain, IP or hostname of the server
      #Host: localhost:8080
      
      # The port of the server (CONAN_SERVER_ADDRESS)
      # Address: localhost
      
      # The port of the server (CONAN_SERVER_PORT)
      # Port: 8080
      
      # 
      Path:
        # The path to the server (CONAN_SERVER_WEB_PATH)  
        Web: web
        
      Watch:
        - Path: src
          Command: /bin/bash -c "npx esbuild --bundle --outfile={{ .WebPath }}/scripts/bundle.js --sourcemap {{ .Path }}"
          Exclude:
            - ~$
            - ^\.
        - Path: web
          Exclude:
            - ~$
            - ^\.
        
      Flags:
        FollowSymlinks: true
    
    endef
    
    export CONANEXAMPLECONF
    
    $(CONAN_CONFIG):
    	$(QUIET) $(ECHO) "$$CONANEXAMPLECONF" >> $@
    
    
    
    $(CONAN_BIN):
    	$(QUIET) $(MKDIR) -p $(VENDOR_PATH)
    	$(QUIET) $(WGET) -O $(CONAN_BIN) http://download.schukai.com/tools/conan/conan-$(shell uname -s | tr [:upper:] [:lower:])-$(shell echo `uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/`)
    	$(QUIET) $(CHMOD) u+x $(CONAN_BIN)