mirror of
https://github.com/mappu/miqt.git
synced 2025-04-27 15:40:21 +00:00
genbindings/emitcabi: correct relative libmiqt path in nested subpackage
This commit is contained in:
parent
ee8c4c5ff3
commit
acc5abdc38
@ -771,11 +771,7 @@ func emitBindingHeader(src *CppParsedHeader, filename string, packageName string
|
||||
|
||||
includeGuard := "MIQT_" + strings.ToUpper(strings.Replace(strings.Replace(packageName, `/`, `_`, -1), `-`, `_`, -1)) + "_GEN_" + strings.ToUpper(strings.Replace(strings.Replace(filename, `.`, `_`, -1), `-`, `_`, -1))
|
||||
|
||||
bindingInclude := "../libmiqt/libmiqt.h"
|
||||
|
||||
if strings.Contains(packageName, `/`) {
|
||||
bindingInclude = "../" + bindingInclude
|
||||
}
|
||||
bindingInclude := strings.Repeat(`../`, strings.Count(packageName, `/`)) + "../libmiqt/libmiqt.h"
|
||||
|
||||
ret.WriteString(`#pragma once
|
||||
#ifndef ` + includeGuard + `
|
||||
|
Loading…
x
Reference in New Issue
Block a user