-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaks and fixes while bringing (back) up vsc-solvers
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
- Loading branch information
Showing
11 changed files
with
200 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
import ivpm | ||
|
||
class PkgInfo(ivpm.PkgInfo): | ||
|
||
def __init__(self): | ||
pkgdir = os.path.dirname(os.path.abspath(__file__)) | ||
projdir = os.path.dirname(os.path.dirname(pkgdir)) | ||
super().__init__("vsc-dm", os.path.dirname(pkgdir)) | ||
|
||
if os.path.isdir(os.path.join(projdir, "src")): | ||
self._incdirs = [os.path.join(projdir, "src", "include")] | ||
self._libdirs = [ | ||
os.path.join(projdir, "build", "lib"), | ||
os.path.join(projdir, "build", "lib64")] | ||
else: | ||
self._incdirs = [os.path.join(pkgdir, "share", "include")] | ||
self._libdirs = [os.path.join(pkgdir)] | ||
|
||
self._libs = ["vsc-dm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* TypeExprRefPath.cpp | ||
* | ||
* Copyright 2023 Matthew Ballance and Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Created on: | ||
* Author: | ||
*/ | ||
#include "TypeExprRefPath.h" | ||
|
||
|
||
namespace vsc { | ||
namespace dm { | ||
|
||
|
||
TypeExprRefPath::TypeExprRefPath( | ||
ITypeExpr *root, | ||
bool owned, | ||
const std::vector<int32_t> &path) : TypeExprRef(root, owned), | ||
m_path(path.begin(), path.end()) { | ||
|
||
} | ||
|
||
TypeExprRefPath::~TypeExprRefPath() { | ||
|
||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* TypeExprRefPath.h | ||
* | ||
* Copyright 2023 Matthew Ballance and Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Created on: | ||
* Author: | ||
*/ | ||
#pragma once | ||
#include "vsc/dm/ITypeExprRefPath.h" | ||
#include "TypeExprRef.h" | ||
|
||
namespace vsc { | ||
namespace dm { | ||
|
||
|
||
|
||
class TypeExprRefPath : | ||
public virtual ITypeExprRefPath, | ||
public virtual TypeExprRef { | ||
public: | ||
TypeExprRefPath( | ||
ITypeExpr *root, | ||
bool owned, | ||
const std::vector<int32_t> &path); | ||
|
||
virtual ~TypeExprRefPath(); | ||
|
||
virtual const std::vector<int32_t> &getPath() const override { | ||
return m_path; | ||
} | ||
|
||
virtual void accept(IVisitor *v) override { | ||
v->visitTypeExprRefPath(this); | ||
} | ||
|
||
private: | ||
std::vector<int32_t> m_path; | ||
}; | ||
|
||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* ITypeExprRefPath.h | ||
* | ||
* Copyright 2023 Matthew Ballance and Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at: | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Created on: | ||
* Author: | ||
*/ | ||
#pragma once | ||
#include <vector> | ||
#include "vsc/dm/ITypeExprRef.h" | ||
|
||
namespace vsc { | ||
namespace dm { | ||
|
||
|
||
class ITypeExprRefPath : public virtual ITypeExprRef { | ||
public: | ||
|
||
virtual ~ITypeExprRefPath() { } | ||
|
||
virtual const std::vector<int32_t> &getPath() const = 0; | ||
|
||
}; | ||
|
||
} /* namespace dm */ | ||
} /* namespace vsc */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters